summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-02-27 03:26:53 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 17:35:17 +0200
commitd4ebb510a05d29befde6556e632413e5b35b9ab5 (patch)
tree309755a4ef21b48f12cca6c40798dccd191cf860 /src/core/hle/kernel/thread.cpp
parentSVC: Cleanup old methods. (diff)
downloadyuzu-d4ebb510a05d29befde6556e632413e5b35b9ab5.tar
yuzu-d4ebb510a05d29befde6556e632413e5b35b9ab5.tar.gz
yuzu-d4ebb510a05d29befde6556e632413e5b35b9ab5.tar.bz2
yuzu-d4ebb510a05d29befde6556e632413e5b35b9ab5.tar.lz
yuzu-d4ebb510a05d29befde6556e632413e5b35b9ab5.tar.xz
yuzu-d4ebb510a05d29befde6556e632413e5b35b9ab5.tar.zst
yuzu-d4ebb510a05d29befde6556e632413e5b35b9ab5.zip
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index fb97535a3..a645ee3a2 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -49,12 +49,12 @@ Thread::~Thread() = default;
void Thread::Stop() {
SchedulerLock lock(kernel);
// Cancel any outstanding wakeup events for this thread
+ Signal();
Core::System::GetInstance().CoreTiming().UnscheduleEvent(kernel.ThreadWakeupCallbackEventType(),
global_handle);
kernel.GlobalHandleTable().Close(global_handle);
global_handle = 0;
SetStatus(ThreadStatus::Dead);
- Signal();
owner_process->UnregisterThread(this);