mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-24 10:15:45 +00: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:
parent
c51eb8b679
commit
42d6bbcb7c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue