summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-20 06:09:46 +0100
committerbunnei <bunneidev@gmail.com>2022-03-25 02:13:33 +0100
commite524def8c068bcd4660410117a13241e175afc9b (patch)
tree104e8be9bda8102444064f812509e6ff3f69cb9e
parenthle: nvflinger: buffer_queue_producer: DequeueBuffer: Remove unnecessary lock. (diff)
downloadyuzu-e524def8c068bcd4660410117a13241e175afc9b.tar
yuzu-e524def8c068bcd4660410117a13241e175afc9b.tar.gz
yuzu-e524def8c068bcd4660410117a13241e175afc9b.tar.bz2
yuzu-e524def8c068bcd4660410117a13241e175afc9b.tar.lz
yuzu-e524def8c068bcd4660410117a13241e175afc9b.tar.xz
yuzu-e524def8c068bcd4660410117a13241e175afc9b.tar.zst
yuzu-e524def8c068bcd4660410117a13241e175afc9b.zip
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_core.cpp2
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_core.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue_core.cpp b/src/core/hle/service/nvflinger/buffer_queue_core.cpp
index 3f1ce78b0..eb93b43ee 100644
--- a/src/core/hle/service/nvflinger/buffer_queue_core.cpp
+++ b/src/core/hle/service/nvflinger/buffer_queue_core.cpp
@@ -16,6 +16,8 @@ BufferQueueCore::BufferQueueCore() : lock{mutex, std::defer_lock} {
}
}
+BufferQueueCore::~BufferQueueCore() = default;
+
void BufferQueueCore::NotifyShutdown() {
std::unique_lock lk(mutex);
diff --git a/src/core/hle/service/nvflinger/buffer_queue_core.h b/src/core/hle/service/nvflinger/buffer_queue_core.h
index ad10b4c3c..a3cd89f1c 100644
--- a/src/core/hle/service/nvflinger/buffer_queue_core.h
+++ b/src/core/hle/service/nvflinger/buffer_queue_core.h
@@ -32,6 +32,7 @@ public:
static constexpr s32 INVALID_BUFFER_SLOT = BufferItem::INVALID_BUFFER_SLOT;
BufferQueueCore();
+ ~BufferQueueCore();
void NotifyShutdown();