[*] Update threading.cpp
This commit is contained in:
parent
e930f39fd1
commit
db5a7cf8ed
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user