mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
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:
1 parent
2164a7fdf9
commit
7c3c06fd23
5 files changed
+15
-34
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user