Notify of shutdown *after* setting coreState.

This commit is contained in:
Unknown W. Brackets 2013-09-30 23:34:33 -07:00
parent 4ae41d4206
commit 10e446d225
3 changed files with 3 additions and 2 deletions

View File

@ -76,8 +76,8 @@ void Core_Halt(const char *msg)
void Core_Stop()
{
Core_NotifyShutdown();
Core_UpdateState(CORE_POWERDOWN);
Core_NotifyShutdown();
m_hStepEvent.notify_one();
}

View File

@ -430,6 +430,7 @@ void __IoManagerThread() {
void __IoWakeManager() {
ioManager.FinishEventLoop();
ioManager.SyncThread();
}
void __IoInit() {

View File

@ -354,7 +354,7 @@ bool WindowsHost::GPUDebuggingActive() {
static void PauseWithMessage(UINT msg, WPARAM wParam = NULL, LPARAM lParam = NULL) {
lock_guard guard(pauseLock);
if (Core_IsInactive()) {
if (coreState != CORE_RUNNING && coreState != CORE_NEXTFRAME) {
return;
}