mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
24 lines
528 B
C++
24 lines
528 B
C++
#include "storm/thread/S_Thread.hpp"
|
|
#include "storm/Memory.hpp"
|
|
|
|
DWORD S_Thread::s_SLaunchThread(void* threadParam) {
|
|
auto params = static_cast<SThreadParmBlock*>(threadParam);
|
|
auto proc = params->threadProc;
|
|
auto param = params->threadParam;
|
|
|
|
SMemFree(threadParam);
|
|
|
|
auto val = proc(param);
|
|
|
|
// TODO
|
|
// S_Thread::s_threadCrit.Enter();
|
|
|
|
// TODO
|
|
// - remove tracking in S_Thread::s_threads
|
|
// - decrement num threads
|
|
|
|
// TODO
|
|
// S_Thread::s_threadCrit.Leave();
|
|
|
|
return val;
|
|
}
|