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