Misc threading fixes and flags to ignore priorities/affinities.

This commit is contained in:
Ben Vanik
2015-05-21 22:33:29 -07:00
parent 37f1953466
commit 4d41840728
3 changed files with 16 additions and 5 deletions

View File

@@ -547,7 +547,7 @@ spin:
// TODO(benvanik): contention - do a real wait!
// XELOGE("RtlEnterCriticalSection tried to really lock!");
spin_wait_remaining = 0; // HACK: spin forever
Sleep(1);
SwitchToThread();
goto spin;
}