mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
Added NoThreadExitWait Rt option for DLLs
This commit is contained in:
parent
177b5b7254
commit
b2ab1b1f62
7 changed files with 36 additions and 5 deletions
|
@ -35,7 +35,8 @@ enum BfRtFlags
|
|||
BfRtFlags_ObjectHasDebugFlags = 1,
|
||||
BfRtFlags_LeakCheck = 2,
|
||||
BfRtFlags_SilentCrash = 4,
|
||||
BfRtFlags_DebugAlloc = 8
|
||||
BfRtFlags_DebugAlloc = 8,
|
||||
BfRtFlags_NoThreadExitWait = 0x10,
|
||||
};
|
||||
|
||||
namespace bf
|
||||
|
|
|
@ -158,7 +158,10 @@ static void BF_CALLTYPE CStartProc(void* threadParam)
|
|||
}
|
||||
|
||||
void BfInternalThread::WaitForAllDone()
|
||||
{
|
||||
{
|
||||
if ((gBfRtFlags & BfRtFlags_NoThreadExitWait) != 0)
|
||||
return;
|
||||
|
||||
while (gLiveThreadCount != 0)
|
||||
{
|
||||
// Clear out any old done events
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue