[*] Update threading.cpp

This commit is contained in:
Reece Wilson 2021-11-09 15:42:41 +00:00
parent e930f39fd1
commit db5a7cf8ed

View File

@ -73,13 +73,10 @@ extern "C"
{ {
*thread = ZSTD_pthread_t{}; *thread = ZSTD_pthread_t{};
Aurora::Threading::Threads::AbstractThreadVectors handler; auto handle = AuThreading::Threads::ThreadNew(AuThreading::Threads::ThreadInfo(
handler.DoRun = [start_routine, arg](Aurora::Threading::Threads::IAuroraThread* thread) AuMakeShared<AuThreading::Threads::IThreadVectorsFunctional>(AuThreading::Threads::IThreadVectorsFunctional::OnEntry_t(std::bind(start_routine, arg)),
{ AuThreading::Threads::IThreadVectorsFunctional::OnExit_t{})
start_routine(arg); ));
};
auto handle = Aurora::Threading::Threads::ThreadNew(handler);
if (!handle) return 1; if (!handle) return 1;
handle->Run(); handle->Run();