diff options
author | Subv <subv2112@gmail.com> | 2018-08-12 17:51:47 -0500 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-08-12 18:41:12 -0500 |
commit | 2e7802ad7d4ab80d9547c3ee44ad3a1341dea625 (patch) | |
tree | fa4e31e2fe542c263f68a6395cd8e4e150eda799 /src | |
parent | 3a338d9286bb7c8a4e169914965e6241c466bc6a (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/core_cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/core_cpu.h b/src/core/core_cpu.h index 976952903..56cdae194 100644 --- a/src/core/core_cpu.h +++ b/src/core/core_cpu.h @@ -79,7 +79,7 @@ private: std::shared_ptr<CpuBarrier> cpu_barrier; std::shared_ptr<Kernel::Scheduler> scheduler; - bool reschedule_pending{}; + std::atomic<bool> reschedule_pending = false; size_t core_index; }; |