summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 66c8f4455..94953e257 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -1078,6 +1078,13 @@ void KernelCore::Suspend(bool suspended) {
1078 1078
1079 for (auto* process : GetProcessList()) { 1079 for (auto* process : GetProcessList()) {
1080 process->SetActivity(activity); 1080 process->SetActivity(activity);
1081
1082 if (should_suspend) {
1083 // Wait for execution to stop
1084 for (auto* thread : process->GetThreadList()) {
1085 thread->WaitUntilSuspended();
1086 }
1087 }
1081 } 1088 }
1082} 1089}
1083 1090