Add a timeout so quit doesn't hang.

Kinda like before except now it'll quit faster if possible.
This commit is contained in:
Unknown W. Brackets committed 2013-02-23 13:32:12 -08:00
1 parent 7c3c06fd23
commit 3dee0e0149
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -89,8 +89,8 @@ void Core_WaitInactive()
void Core_WaitInactive(int milliseconds)
{
// TODO
Core_WaitInactive();
while (!Core_IsInactive())
m_hInactiveEvent.wait_for(m_hInactiveMutex, milliseconds);
}
void Core_RunLoop()