core_timing: lock event queue access

This commit is contained in:
Liam 2023-11-13 19:01:05 -05:00
parent 247d66a680
commit ec6b67d862
2 changed files with 3 additions and 1 deletions

View file

@ -161,7 +161,7 @@ private:
std::shared_ptr<EventType> ev_lost;
Common::Event event{};
Common::Event pause_event{};
std::mutex basic_lock;
mutable std::mutex basic_lock;
std::mutex advance_lock;
std::unique_ptr<std::jthread> timer_thread;
std::atomic<bool> paused{};