summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index ca52267b2..7d4fe9608 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -142,6 +142,12 @@ void Thread::ResumeFromWait() {
142 ChangeScheduler(); 142 ChangeScheduler();
143} 143}
144 144
145void Thread::CancelWait() {
146 ASSERT(GetStatus() == ThreadStatus::WaitSynchAny);
147 SetWaitSynchronizationResult(ERR_SYNCHRONIZATION_CANCELED);
148 ResumeFromWait();
149}
150
145/** 151/**
146 * Resets a thread context, making it ready to be scheduled and run by the CPU 152 * Resets a thread context, making it ready to be scheduled and run by the CPU
147 * @param context Thread context to reset 153 * @param context Thread context to reset