Extending critical sections to spin forever for now.

This commit is contained in:
Ben Vanik 2013-10-18 21:55:43 -07:00
parent 01a94f3850
commit 562c86f76d
1 changed files with 4 additions and 1 deletions

View File

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