mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-03 22:51:05 +00:00
As a safety, especially for win32, cap the wait.
This commit is contained in:
parent
8786ec74ca
commit
169fbeaca6
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user