Extending critical sections to spin forever for now.
This commit is contained in:
parent
01a94f3850
commit
562c86f76d
|
@ -767,7 +767,10 @@ spin:
|
|||
|
||||
// All out of spin waits, create a full waiter.
|
||||
// TODO(benvanik): contention - do a real wait!
|
||||
XELOGE("RtlEnterCriticalSection tried to really lock!");
|
||||
//XELOGE("RtlEnterCriticalSection tried to really lock!");
|
||||
spin_wait_remaining = 1; // HACK: spin forever
|
||||
Sleep(1);
|
||||
goto spin;
|
||||
}
|
||||
|
||||
// Now own the lock.
|
||||
|
|
Loading…
Reference in New Issue