cooperative thread debug support in CFHost

This commit is contained in:
Christopher Lloyd 2010-10-28 23:05:22 -04:00
parent f189167d2f
commit e6e74b8aae

View File

@ -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;