mirror of
https://github.com/vtil-project/VTIL-Core
synced 2026-08-17 08:23:03 -04:00
Change handle assignment to use std::thread
This commit is contained in:
parent
6f21abb3d4
commit
e800d61a62
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue