Wait for the runloop to end in savestates/debug.

This way, even if the runloop hasn't checked coreState yet, we will wait.
This commit is contained in:
Unknown W. Brackets committed 2013-02-23 13:21:28 -08:00
1 parent 2164a7fdf9
commit 7c3c06fd23
5 files changed
+15 -34

No files matched your search

+7
View File
@@ -80,12 +80,19 @@ bool Core_IsInactive()
{
return coreState != CORE_RUNNING && coreState != CORE_NEXTFRAME && !coreStatePending;
}
void Core_WaitInactive()
{
while (!Core_IsInactive())
m_hInactiveEvent.wait(m_hInactiveMutex);
}
void Core_WaitInactive(int milliseconds)
{
// TODO
Core_WaitInactive();
}
void Core_RunLoop()
{
while (!coreState) {