From 53058ae73f26e19cd819ba1c9a365a091962757d Mon Sep 17 00:00:00 2001 From: bunnei Date: Sat, 19 Mar 2022 21:53:47 -0700 Subject: hle: nvflinger: buffer_queue_core: Cleanup locking. --- src/core/hle/service/nvflinger/buffer_queue_core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/hle/service/nvflinger/buffer_queue_core.cpp b/src/core/hle/service/nvflinger/buffer_queue_core.cpp index 63cf66ba3..4a26d2fdc 100644 --- a/src/core/hle/service/nvflinger/buffer_queue_core.cpp +++ b/src/core/hle/service/nvflinger/buffer_queue_core.cpp @@ -17,7 +17,7 @@ BufferQueueCore::BufferQueueCore() : lock{mutex, std::defer_lock} { } void BufferQueueCore::NotifyShutdown() { - std::unique_lock lk(mutex); + std::unique_lock lk(mutex); is_shutting_down = true; @@ -124,7 +124,7 @@ bool BufferQueueCore::StillTracking(const BufferItem* item) const { void BufferQueueCore::WaitWhileAllocatingLocked() const { while (is_allocating) { - std::unique_lock lk(mutex); + std::unique_lock lk(mutex); is_allocating_condition.wait(lk); } } -- cgit v1.2.3