Debugger: Lock startup/shutdown for threadsafety.

Otherwise things can get freed while we're trying to inspect them.
This commit is contained in:
Unknown W. Brackets committed 2018-06-06 05:58:49 -07:00
1 parent 77609bbea2
commit e313a9bf6c
7 files changed
+45 -23

No files matched your search

+6 -4
View File
@@ -197,10 +197,12 @@ void ResumeFromStepping() {
SetPauseAction(PAUSE_CONTINUE, false);
}
void ForceUnpause() {
SetPauseAction(PAUSE_CONTINUE, false);
actionComplete = true;
actionWait.notify_all();
void ForceUnpause(CoreLifecycle stage) {
if (stage == CoreLifecycle::STOPPING) {
SetPauseAction(PAUSE_CONTINUE, false);
actionComplete = true;
actionWait.notify_all();
}
}
} // namespace