diff --git a/Source/Async/Schedular.cpp b/Source/Async/Schedular.cpp index 112e9ce9..aa10eea7 100644 --- a/Source/Async/Schedular.cpp +++ b/Source/Async/Schedular.cpp @@ -114,12 +114,10 @@ namespace Aurora::Async void StartSched() { - Threading::Threads::AbstractThreadVectors handler; - handler.DoRun = [=](const Threading::Threads::IAuroraThread *thread) - { - SchedThread(); - }; - gThread = Threading::Threads::ThreadUnique(handler); + gThread = Threading::Threads::ThreadUnique(AuThreading::Threads::ThreadInfo( + AuMakeShared(AuThreading::Threads::IThreadVectorsFunctional::OnEntry_t(std::bind(SchedThread)), + AuThreading::Threads::IThreadVectorsFunctional::OnExit_t{}) + )); gThread->Run(); }