summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvflinger
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-20 05:53:47 +0100
committerbunnei <bunneidev@gmail.com>2022-03-25 02:13:33 +0100
commit53058ae73f26e19cd819ba1c9a365a091962757d (patch)
tree4fbaa6f23adc6a4be8cce81f549b1c25a99d61ba /src/core/hle/service/nvflinger
parenthle: nvflinger: Use std::chrono for present_ns. (diff)
downloadyuzu-53058ae73f26e19cd819ba1c9a365a091962757d.tar
yuzu-53058ae73f26e19cd819ba1c9a365a091962757d.tar.gz
yuzu-53058ae73f26e19cd819ba1c9a365a091962757d.tar.bz2
yuzu-53058ae73f26e19cd819ba1c9a365a091962757d.tar.lz
yuzu-53058ae73f26e19cd819ba1c9a365a091962757d.tar.xz
yuzu-53058ae73f26e19cd819ba1c9a365a091962757d.tar.zst
yuzu-53058ae73f26e19cd819ba1c9a365a091962757d.zip
Diffstat (limited to 'src/core/hle/service/nvflinger')
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_core.cpp4
1 files 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<std::mutex> 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<std::mutex> lk(mutex);
+ std::unique_lock lk(mutex);
is_allocating_condition.wait(lk);
}
}