diff options
author | Liam <byteslice@airmail.cc> | 2023-10-30 04:38:24 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-10-30 04:38:24 +0100 |
commit | a872030a351cc50293e6bf0793fe70041cee0098 (patch) | |
tree | 5e88267716394ccd2d15379a02e69d74bd371916 /src/core/hle/service/nvnflinger/buffer_queue_core.cpp | |
parent | Merge pull request #11911 from german77/leak_event (diff) | |
download | yuzu-a872030a351cc50293e6bf0793fe70041cee0098.tar yuzu-a872030a351cc50293e6bf0793fe70041cee0098.tar.gz yuzu-a872030a351cc50293e6bf0793fe70041cee0098.tar.bz2 yuzu-a872030a351cc50293e6bf0793fe70041cee0098.tar.lz yuzu-a872030a351cc50293e6bf0793fe70041cee0098.tar.xz yuzu-a872030a351cc50293e6bf0793fe70041cee0098.tar.zst yuzu-a872030a351cc50293e6bf0793fe70041cee0098.zip |
Diffstat (limited to 'src/core/hle/service/nvnflinger/buffer_queue_core.cpp')
-rw-r--r-- | src/core/hle/service/nvnflinger/buffer_queue_core.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/core/hle/service/nvnflinger/buffer_queue_core.cpp b/src/core/hle/service/nvnflinger/buffer_queue_core.cpp index ed66f6f5b..4ed5e5978 100644 --- a/src/core/hle/service/nvnflinger/buffer_queue_core.cpp +++ b/src/core/hle/service/nvnflinger/buffer_queue_core.cpp @@ -14,24 +14,12 @@ BufferQueueCore::BufferQueueCore() = default; BufferQueueCore::~BufferQueueCore() = default; -void BufferQueueCore::NotifyShutdown() { - std::scoped_lock lock{mutex}; - - is_shutting_down = true; - - SignalDequeueCondition(); -} - void BufferQueueCore::SignalDequeueCondition() { dequeue_possible.store(true); dequeue_condition.notify_all(); } bool BufferQueueCore::WaitForDequeueCondition(std::unique_lock<std::mutex>& lk) { - if (is_shutting_down) { - return false; - } - dequeue_condition.wait(lk, [&] { return dequeue_possible.load(); }); dequeue_possible.store(false); |