SVC: Correct WaitSynchronization, WaitProcessWideKey, SignalProcessWideKey.
This commit is contained in:
parent
5b6a67f849
commit
d4ebb510a0
9 changed files with 84 additions and 33 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue