mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Linux fix
This commit is contained in:
parent
95c876570f
commit
49b124e291
2 changed files with 7 additions and 0 deletions
|
@ -192,9 +192,14 @@ void Thread::StartInternal()
|
|||
|
||||
BfInternalThread* internalThread = SetupInternalThread();
|
||||
internalThread->mThread = this;
|
||||
#ifdef _WIN32
|
||||
internalThread->mThreadHandle = BfpThread_Create(CStartProc, (void*)this, GetMaxStackSize(), (BfpThreadCreateFlags)(BfpThreadCreateFlag_StackSizeReserve | BfpThreadCreateFlag_Suspended), &internalThread->mThreadId);
|
||||
SetInternalThread(internalThread);
|
||||
BfpThread_Resume(internalThread->mThreadHandle, NULL);
|
||||
#else
|
||||
internalThread->mThreadHandle = BfpThread_Create(CStartProc, (void*)this, GetMaxStackSize(), (BfpThreadCreateFlags)(BfpThreadCreateFlag_StackSizeReserve), &internalThread->mThreadId);
|
||||
SetInternalThread(internalThread);
|
||||
#endif
|
||||
}
|
||||
|
||||
int Thread::GetThreadId()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue