summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-12-23 20:25:51 +0100
committerLiam <byteslice@airmail.cc>2023-12-23 21:36:46 +0100
commit3a4e7d45f1b2dfc1a47c00679e99c2034861e73a (patch)
tree50807dd6ff750c65e998c3f0c62318d845d9e3c2 /src/core
parentcore_timing: handle concurrent unscheduling of looping events (diff)
downloadyuzu-3a4e7d45f1b2dfc1a47c00679e99c2034861e73a.tar
yuzu-3a4e7d45f1b2dfc1a47c00679e99c2034861e73a.tar.gz
yuzu-3a4e7d45f1b2dfc1a47c00679e99c2034861e73a.tar.bz2
yuzu-3a4e7d45f1b2dfc1a47c00679e99c2034861e73a.tar.lz
yuzu-3a4e7d45f1b2dfc1a47c00679e99c2034861e73a.tar.xz
yuzu-3a4e7d45f1b2dfc1a47c00679e99c2034861e73a.tar.zst
yuzu-3a4e7d45f1b2dfc1a47c00679e99c2034861e73a.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core_timing.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp
index c85590d4c..fc536413b 100644
--- a/src/core/core_timing.cpp
+++ b/src/core/core_timing.cpp
@@ -72,8 +72,9 @@ void CoreTiming::Initialize(std::function<void()>&& on_thread_init_) {
}
void CoreTiming::ClearPendingEvents() {
- std::scoped_lock lock{basic_lock};
+ std::scoped_lock lock{advance_lock, basic_lock};
event_queue.clear();
+ event.Set();
}
void CoreTiming::Pause(bool is_paused) {