summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvflinger
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-07-26 00:53:25 +0200
committerLioncash <mathew1800@gmail.com>2020-07-26 01:04:53 +0200
commit5dab23e0171fd9fcb1976ac13e484ee7cf166e29 (patch)
treebbffe822135d0e9578588b01fae8bf807c1cbe3a /src/core/hle/service/nvflinger
parentMerge pull request #4350 from ogniK5377/hid-update-connected (diff)
downloadyuzu-5dab23e0171fd9fcb1976ac13e484ee7cf166e29.tar
yuzu-5dab23e0171fd9fcb1976ac13e484ee7cf166e29.tar.gz
yuzu-5dab23e0171fd9fcb1976ac13e484ee7cf166e29.tar.bz2
yuzu-5dab23e0171fd9fcb1976ac13e484ee7cf166e29.tar.lz
yuzu-5dab23e0171fd9fcb1976ac13e484ee7cf166e29.tar.xz
yuzu-5dab23e0171fd9fcb1976ac13e484ee7cf166e29.tar.zst
yuzu-5dab23e0171fd9fcb1976ac13e484ee7cf166e29.zip
Diffstat (limited to 'src/core/hle/service/nvflinger')
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp2
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp
index 789856118..e561bf654 100644
--- a/src/core/hle/service/nvflinger/nvflinger.cpp
+++ b/src/core/hle/service/nvflinger/nvflinger.cpp
@@ -68,7 +68,7 @@ NVFlinger::NVFlinger(Core::System& system) : system(system) {
// Schedule the screen composition events
composition_event = Core::Timing::CreateEvent(
"ScreenComposition", [this](u64, std::chrono::nanoseconds ns_late) {
- Lock();
+ const auto guard = Lock();
Compose();
const auto ticks = std::chrono::nanoseconds{GetNextTicks()};
diff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.h
index e4959a9af..0be55e442 100644
--- a/src/core/hle/service/nvflinger/nvflinger.h
+++ b/src/core/hle/service/nvflinger/nvflinger.h
@@ -86,7 +86,7 @@ public:
s64 GetNextTicks() const;
- std::unique_lock<std::mutex> Lock() {
+ std::unique_lock<std::mutex> Lock() const {
return std::unique_lock{*guard};
}