summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi/vi.cpp
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/vi/vi.cpp
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 '')
-rw-r--r--src/core/hle/service/vi/vi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp
index ea7b4ae13..825d11a3f 100644
--- a/src/core/hle/service/vi/vi.cpp
+++ b/src/core/hle/service/vi/vi.cpp
@@ -511,7 +511,7 @@ private:
LOG_DEBUG(Service_VI, "called. id=0x{:08X} transaction={:X}, flags=0x{:08X}", id,
static_cast<u32>(transaction), flags);
- nv_flinger->Lock();
+ const auto guard = nv_flinger->Lock();
auto& buffer_queue = nv_flinger->FindBufferQueue(id);
switch (transaction) {
@@ -551,7 +551,7 @@ private:
[=](std::shared_ptr<Kernel::Thread> thread, Kernel::HLERequestContext& ctx,
Kernel::ThreadWakeupReason reason) {
// Repeat TransactParcel DequeueBuffer when a buffer is available
- nv_flinger->Lock();
+ const auto guard = nv_flinger->Lock();
auto& buffer_queue = nv_flinger->FindBufferQueue(id);
auto result = buffer_queue.DequeueBuffer(width, height);
ASSERT_MSG(result != std::nullopt, "Could not dequeue buffer.");