diff options
| author | 2020-02-26 22:26:53 -0400 | |
|---|---|---|
| committer | 2020-06-27 11:35:17 -0400 | |
| commit | d4ebb510a05d29befde6556e632413e5b35b9ab5 (patch) | |
| tree | 309755a4ef21b48f12cca6c40798dccd191cf860 /src/core/hle/kernel/thread.cpp | |
| parent | SVC: Cleanup old methods. (diff) | |
| download | yuzu-d4ebb510a05d29befde6556e632413e5b35b9ab5.tar.gz yuzu-d4ebb510a05d29befde6556e632413e5b35b9ab5.tar.xz yuzu-d4ebb510a05d29befde6556e632413e5b35b9ab5.zip | |
SVC: Correct WaitSynchronization, WaitProcessWideKey, SignalProcessWideKey.
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 2 |
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; | |||
| 49 | void Thread::Stop() { | 49 | void Thread::Stop() { |
| 50 | SchedulerLock lock(kernel); | 50 | SchedulerLock lock(kernel); |
| 51 | // Cancel any outstanding wakeup events for this thread | 51 | // Cancel any outstanding wakeup events for this thread |
| 52 | Signal(); | ||
| 52 | Core::System::GetInstance().CoreTiming().UnscheduleEvent(kernel.ThreadWakeupCallbackEventType(), | 53 | Core::System::GetInstance().CoreTiming().UnscheduleEvent(kernel.ThreadWakeupCallbackEventType(), |
| 53 | global_handle); | 54 | global_handle); |
| 54 | kernel.GlobalHandleTable().Close(global_handle); | 55 | kernel.GlobalHandleTable().Close(global_handle); |
| 55 | global_handle = 0; | 56 | global_handle = 0; |
| 56 | SetStatus(ThreadStatus::Dead); | 57 | SetStatus(ThreadStatus::Dead); |
| 57 | Signal(); | ||
| 58 | 58 | ||
| 59 | owner_process->UnregisterThread(this); | 59 | owner_process->UnregisterThread(this); |
| 60 | 60 | ||