diff options
author | Lioncash <mathew1800@gmail.com> | 2019-04-17 13:08:12 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-04-17 15:30:56 +0200 |
commit | 433b59c1121a257ae3c1503fff5b71d3f3852ab5 (patch) | |
tree | 23f4cbe699ff28d3f5907aff55f49081623d419b /src/core/hle/kernel/thread.cpp | |
parent | Merge pull request #2315 from ReinUsesLisp/severity-decompiler (diff) | |
download | yuzu-433b59c1121a257ae3c1503fff5b71d3f3852ab5.tar yuzu-433b59c1121a257ae3c1503fff5b71d3f3852ab5.tar.gz yuzu-433b59c1121a257ae3c1503fff5b71d3f3852ab5.tar.bz2 yuzu-433b59c1121a257ae3c1503fff5b71d3f3852ab5.tar.lz yuzu-433b59c1121a257ae3c1503fff5b71d3f3852ab5.tar.xz yuzu-433b59c1121a257ae3c1503fff5b71d3f3852ab5.tar.zst yuzu-433b59c1121a257ae3c1503fff5b71d3f3852ab5.zip |
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r-- | src/core/hle/kernel/thread.cpp | 6 |
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() { ChangeScheduler(); } +void Thread::CancelWait() { + ASSERT(GetStatus() == ThreadStatus::WaitSynchAny); + SetWaitSynchronizationResult(ERR_SYNCHRONIZATION_CANCELED); + ResumeFromWait(); +} + /** * Resets a thread context, making it ready to be scheduled and run by the CPU * @param context Thread context to reset |