From 169fbeaca6d7a7589683deba61c3cad2db21d02b Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 10 Aug 2013 21:27:51 -0700 Subject: [PATCH] As a safety, especially for win32, cap the wait. --- Core/System.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/System.cpp b/Core/System.cpp index f135fa3487..13a6a2d459 100644 --- a/Core/System.cpp +++ b/Core/System.cpp @@ -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(); }