diff options
| author | 2022-06-10 09:17:12 -0400 | |
|---|---|---|
| committer | 2022-06-10 09:17:12 -0400 | |
| commit | 1f0fee33edf06bb237a952b78b6e117ba81cbdbb (patch) | |
| tree | 01ce352e9ffbc07cb2b7dc0fd1e1c4ea50298bee /src/core/core.cpp | |
| parent | core/debugger: support operation in yuzu-cmd (diff) | |
| download | yuzu-1f0fee33edf06bb237a952b78b6e117ba81cbdbb.tar.gz yuzu-1f0fee33edf06bb237a952b78b6e117ba81cbdbb.tar.xz yuzu-1f0fee33edf06bb237a952b78b6e117ba81cbdbb.zip | |
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 7d974ba65..954136adb 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -493,6 +493,12 @@ void System::Shutdown() { | |||
| 493 | impl->Shutdown(); | 493 | impl->Shutdown(); |
| 494 | } | 494 | } |
| 495 | 495 | ||
| 496 | void System::DetachDebugger() { | ||
| 497 | if (impl->debugger) { | ||
| 498 | impl->debugger->NotifyShutdown(); | ||
| 499 | } | ||
| 500 | } | ||
| 501 | |||
| 496 | std::unique_lock<std::mutex> System::StallCPU() { | 502 | std::unique_lock<std::mutex> System::StallCPU() { |
| 497 | return impl->StallCPU(); | 503 | return impl->StallCPU(); |
| 498 | } | 504 | } |