diff options
| author | Liam <byteslice@airmail.cc> | 2023-01-23 14:56:06 -0500 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2023-01-23 17:14:41 -0500 |
| commit | 31945a6e8b089fc11b35e65160f69329f4e5653a (patch) | |
| tree | 8129ee6653bbb551ac77e45f86ee2ee959b58969 /src/core/hle/kernel/k_thread.cpp | |
| parent | d2838b35683ba7c3da0880e24d30460aa48c00f9 (diff) | |
kernel: fix incorrect locking order in suspension
Diffstat (limited to 'src/core/hle/kernel/k_thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/k_thread.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp index 21207fe99b..7c7c2459c9 100644 --- a/src/core/hle/kernel/k_thread.cpp +++ b/src/core/hle/kernel/k_thread.cpp @@ -763,19 +763,6 @@ void KThread::Continue() { KScheduler::OnThreadStateChanged(kernel, this, old_state); } -void KThread::WaitUntilSuspended() { - // Make sure we have a suspend requested. - ASSERT(IsSuspendRequested()); - - // Loop until the thread is not executing on any core. - for (std::size_t i = 0; i < static_cast<std::size_t>(Core::Hardware::NUM_CPU_CORES); ++i) { - KThread* core_thread{}; - do { - core_thread = kernel.Scheduler(i).GetSchedulerCurrentThread(); - } while (core_thread == this); - } -} - Result KThread::SetActivity(Svc::ThreadActivity activity) { // Lock ourselves. KScopedLightLock lk(activity_pause_lock); |
