mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
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.
|
// All out of spin waits, create a full waiter.
|
||||||
// TODO(benvanik): contention - do a real wait!
|
// 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.
|
// Now own the lock.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue