mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
fix(thread): windows threads are not suspended by default
This commit is contained in:
parent
7e89d65d7a
commit
bebe40f781
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ void* SCreateThread(uint32_t (*threadProc)(void*), void* threadParam, void* a3,
|
||||||
|
|
||||||
DWORD threadId;
|
DWORD threadId;
|
||||||
// TODO pass dwStackSize and dwCreationFlags through to CreateThread
|
// TODO pass dwStackSize and dwCreationFlags through to CreateThread
|
||||||
HANDLE threadH = CreateThread(nullptr, 0, S_Thread::s_SLaunchThread, params, CREATE_SUSPENDED, &threadId);
|
HANDLE threadH = CreateThread(nullptr, 0, S_Thread::s_SLaunchThread, params, 0x0, &threadId);
|
||||||
params->threadH = threadH;
|
params->threadH = threadH;
|
||||||
|
|
||||||
auto& thread = S_Thread::s_threads[S_Thread::s_numthreads];
|
auto& thread = S_Thread::s_threads[S_Thread::s_numthreads];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue