diff options
author | Liam <byteslice@airmail.cc> | 2023-11-14 01:01:05 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-11-14 17:51:04 +0100 |
commit | ec6b67d862a2606d6e9fe1036746605a6bfe5114 (patch) | |
tree | 860ee81c9d35939ecc2178fc5a1497ed5dadec1e /src/core/core_timing.cpp | |
parent | Merge pull request #11990 from german77/audio (diff) | |
download | yuzu-ec6b67d862a2606d6e9fe1036746605a6bfe5114.tar yuzu-ec6b67d862a2606d6e9fe1036746605a6bfe5114.tar.gz yuzu-ec6b67d862a2606d6e9fe1036746605a6bfe5114.tar.bz2 yuzu-ec6b67d862a2606d6e9fe1036746605a6bfe5114.tar.lz yuzu-ec6b67d862a2606d6e9fe1036746605a6bfe5114.tar.xz yuzu-ec6b67d862a2606d6e9fe1036746605a6bfe5114.tar.zst yuzu-ec6b67d862a2606d6e9fe1036746605a6bfe5114.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/core_timing.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index e671b270f..d6b5abc68 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp @@ -76,6 +76,7 @@ void CoreTiming::Initialize(std::function<void()>&& on_thread_init_) { } void CoreTiming::ClearPendingEvents() { + std::scoped_lock lock{basic_lock}; event_queue.clear(); } @@ -113,6 +114,7 @@ bool CoreTiming::IsRunning() const { } bool CoreTiming::HasPendingEvents() const { + std::scoped_lock lock{basic_lock}; return !(wait_set && event_queue.empty()); } |