mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-13 21:27:56 -05:00
Add PrepareReschedule where required.
This commit is contained in:
committed by
FernandoS27
parent
b8b7ebcece
commit
b5d1e44782
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user