mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-10-07 09:33:28 +00:00
cooperative thread debug support in CFHost
This commit is contained in:
parent
f189167d2f
commit
e6e74b8aae
@ -150,8 +150,11 @@ static unsigned addressResolverThread(void *arg){
|
||||
queueEmpty=(info->queueCount==0)?TRUE:FALSE;
|
||||
LeaveCriticalSection(&(info->queueLock));
|
||||
|
||||
if(queueEmpty)
|
||||
if(queueEmpty){
|
||||
NSCooperativeThreadBlocking();
|
||||
WaitForSingleObject(info->queueEvent,INFINITE);
|
||||
NSCooperativeThreadWaiting();
|
||||
}
|
||||
|
||||
CFHostRequest *request=NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user