[*] 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{};
Aurora::Threading::Threads::AbstractThreadVectors handler;
handler.DoRun = [start_routine, arg](Aurora::Threading::Threads::IAuroraThread* thread)
{
start_routine(arg);
};
auto handle = Aurora::Threading::Threads::ThreadNew(handler);
auto handle = AuThreading::Threads::ThreadNew(AuThreading::Threads::ThreadInfo(
AuMakeShared<AuThreading::Threads::IThreadVectorsFunctional>(AuThreading::Threads::IThreadVectorsFunctional::OnEntry_t(std::bind(start_routine, arg)),
AuThreading::Threads::IThreadVectorsFunctional::OnExit_t{})
));
if (!handle) return 1;
handle->Run();