fix bug from r4479 in windows with softrasterizer task freezing
This commit is contained in:
parent
fb60a9bcd8
commit
39997cfebf
desmume/src/utils
|
@ -148,7 +148,11 @@ void* Task::Impl::finish()
|
|||
if(spinlock)
|
||||
while(!bWorkDone)
|
||||
Sleep(0);
|
||||
else WaitForSingleObject(workDone,INFINITE);
|
||||
else
|
||||
{
|
||||
if(!bWorkDone)
|
||||
WaitForSingleObject(workDone,INFINITE);
|
||||
}
|
||||
return param;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue