aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/service/nvnflinger
diff options
context:
space:
mode:
authorMorph <[email protected]>2023-04-22 23:58:27 -0400
committerMorph <[email protected]>2023-06-07 21:44:42 -0400
commitbbd502f67adb17b00b33f1b7158cfff2b2fa8a3e (patch)
treed34669136f2d05a196fc583c250eae3a54dc95aa /src/core/hle/service/nvnflinger
parent1492a65454d6a03f641b136cc61e68870be00218 (diff)
downloadyuzu-mainline-bbd502f67adb17b00b33f1b7158cfff2b2fa8a3e.tar.gz
yuzu-mainline-bbd502f67adb17b00b33f1b7158cfff2b2fa8a3e.zip
nvnflinger: Acquire lock prior to signaling the vsync variable
Diffstat (limited to 'src/core/hle/service/nvnflinger')
-rw-r--r--src/core/hle/service/nvnflinger/nvnflinger.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/nvnflinger/nvnflinger.cpp b/src/core/hle/service/nvnflinger/nvnflinger.cpp
index 4988e6e17..aa3356611 100644
--- a/src/core/hle/service/nvnflinger/nvnflinger.cpp
+++ b/src/core/hle/service/nvnflinger/nvnflinger.cpp
@@ -70,7 +70,8 @@ Nvnflinger::Nvnflinger(Core::System& system_, HosBinderDriverServer& hos_binder_
[this](std::uintptr_t, s64 time,
std::chrono::nanoseconds ns_late) -> std::optional<std::chrono::nanoseconds> {
vsync_signal.store(true);
- vsync_signal.notify_all();
+ { const auto lock_guard = Lock(); }
+ vsync_signal.notify_one();
return std::chrono::nanoseconds(GetNextTicks());
});