diff options
author | Liam <byteslice@airmail.cc> | 2022-06-10 09:17:12 -0400 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-06-10 09:17:12 -0400 |
commit | 1f0fee33edf06bb237a952b78b6e117ba81cbdbb (patch) | |
tree | 01ce352e9ffbc07cb2b7dc0fd1e1c4ea50298bee /src/core/core.cpp | |
parent | de6c0defb358b6d12831a594b1b4c615003566b8 (diff) |
core/debugger: fix a number of shutdown deadlocks
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 7d974ba65e..954136adb6 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -493,6 +493,12 @@ void System::Shutdown() { impl->Shutdown(); } +void System::DetachDebugger() { + if (impl->debugger) { + impl->debugger->NotifyShutdown(); + } +} + std::unique_lock<std::mutex> System::StallCPU() { return impl->StallCPU(); } |