mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-30 07:52:45 +00:00
Scheduler: Correct locking for hle threads.
This commit is contained in:
parent
6ed28e15fa
commit
44cb9997b3
|
@ -687,9 +687,10 @@ void Scheduler::SwitchToCurrent() {
|
|||
guard.lock();
|
||||
selected_thread = selected_thread_set;
|
||||
current_thread = selected_thread;
|
||||
is_context_switch_pending = false;
|
||||
guard.unlock();
|
||||
while (!is_context_switch_pending) {
|
||||
if (current_thread != nullptr) {
|
||||
if (current_thread != nullptr && !current_thread->IsHLEThread()) {
|
||||
current_thread->context_guard.lock();
|
||||
if (current_thread->GetSchedulingStatus() != ThreadSchedStatus::Runnable) {
|
||||
current_thread->context_guard.unlock();
|
||||
|
|
Loading…
Reference in a new issue