diff options
| author | bunnei <bunneidev@gmail.com> | 2018-08-12 22:05:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-12 22:05:48 -0400 |
| commit | e4ed5bc83610b7538f3a8ea355a3ed2437c87671 (patch) | |
| tree | 7ae20333761b95790d6d263539f8607084982b38 /src/core/core_cpu.h | |
| parent | de5d431eec05f8cc126491135e1f97f5022f7102 (diff) | |
| parent | 2e7802ad7d4ab80d9547c3ee44ad3a1341dea625 (diff) | |
Merge pull request #1042 from Subv/races
Fixed a bunch of race conditions when running in multicore mode.
Diffstat (limited to 'src/core/core_cpu.h')
| -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; }; |
