As a safety, especially for win32, cap the wait.

This commit is contained in:
Unknown W. Brackets 2013-08-10 21:27:51 -07:00
parent 8786ec74ca
commit 169fbeaca6

View File

@ -112,7 +112,7 @@ bool CPU_HasPendingAction() {
void CPU_WaitStatus(bool (*pred)()) {
cpuThreadLock.lock();
while (!pred())
cpuThreadCond.wait(cpuThreadLock);
cpuThreadCond.wait_for(cpuThreadLock, 16);
cpuThreadLock.unlock();
}