mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-12 12:57:56 -05:00
Core/HLE: Make the 'reschedule_pending' flag atomic.
Another thread may write to this variable while the core in question is in the middle of checking for a reschedule request.
This commit is contained in:
@ -79,7 +79,7 @@ private:
|
|||||||
std::shared_ptr<CpuBarrier> cpu_barrier;
|
std::shared_ptr<CpuBarrier> cpu_barrier;
|
||||||
std::shared_ptr<Kernel::Scheduler> scheduler;
|
std::shared_ptr<Kernel::Scheduler> scheduler;
|
||||||
|
|
||||||
bool reschedule_pending{};
|
std::atomic<bool> reschedule_pending = false;
|
||||||
size_t core_index;
|
size_t core_index;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user