diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-03-29 22:13:00 +0100 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-10-15 17:55:10 +0200 |
commit | b5d1e447821eb21158669e0ef1d24d630602f1fe (patch) | |
tree | 0889f7ee46ffe5ffd1880abbcd786c9adf2251bf /src/core/hle/kernel/wait_object.cpp | |
parent | Correct compiling errors and addapt to the new interface. (diff) | |
download | yuzu-b5d1e447821eb21158669e0ef1d24d630602f1fe.tar yuzu-b5d1e447821eb21158669e0ef1d24d630602f1fe.tar.gz yuzu-b5d1e447821eb21158669e0ef1d24d630602f1fe.tar.bz2 yuzu-b5d1e447821eb21158669e0ef1d24d630602f1fe.tar.lz yuzu-b5d1e447821eb21158669e0ef1d24d630602f1fe.tar.xz yuzu-b5d1e447821eb21158669e0ef1d24d630602f1fe.tar.zst yuzu-b5d1e447821eb21158669e0ef1d24d630602f1fe.zip |
Diffstat (limited to 'src/core/hle/kernel/wait_object.cpp')
-rw-r--r-- | src/core/hle/kernel/wait_object.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/kernel/wait_object.cpp b/src/core/hle/kernel/wait_object.cpp index 0e96ba872..e035a67e9 100644 --- a/src/core/hle/kernel/wait_object.cpp +++ b/src/core/hle/kernel/wait_object.cpp @@ -6,6 +6,8 @@ #include "common/assert.h" #include "common/common_types.h" #include "common/logging/log.h" +#include "core/core.h" +#include "core/core_cpu.h" #include "core/hle/kernel/object.h" #include "core/hle/kernel/process.h" #include "core/hle/kernel/thread.h" @@ -95,6 +97,8 @@ void WaitObject::WakeupWaitingThread(SharedPtr<Thread> thread) { } if (resume) { thread->ResumeFromWait(); + if (thread->GetProcessorID() >= 0) + Core::System::GetInstance().CpuCore(thread->GetProcessorID()).PrepareReschedule(); } } |