Change handle assignment to use std::thread

This commit is contained in:
dword64 2026-04-01 13:20:54 +02:00 committed by GitHub
parent 6f21abb3d4
commit e800d61a62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -148,7 +148,7 @@ namespace vtil::task
#if VTIL_USE_THREAD_POOLING
handle = std::async( std::launch::async, std::move( f ) );
#else
handle = { f };
handle = std::thread( std::move( f ) );
#endif
}
@ -171,4 +171,4 @@ namespace vtil::task
#endif
}
};
};
};