diff options
author | Morph <[email protected]> | 2023-04-22 23:58:27 -0400 |
---|---|---|
committer | Morph <[email protected]> | 2023-06-07 21:44:42 -0400 |
commit | bbd502f67adb17b00b33f1b7158cfff2b2fa8a3e (patch) | |
tree | d34669136f2d05a196fc583c250eae3a54dc95aa /src/core/hle/service/nvnflinger | |
parent | 1492a65454d6a03f641b136cc61e68870be00218 (diff) | |
download | yuzu-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.cpp | 3 |
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()); }); |