diff options
author | Merry <git@mary.rs> | 2022-04-07 20:36:31 +0200 |
---|---|---|
committer | Merry <git@mary.rs> | 2022-04-07 20:44:07 +0200 |
commit | d79274a5d973f6000e20df6261d7624c89cbff59 (patch) | |
tree | 03441e1c98ae9fe49a406b3d869a39262ae291a2 /src/core/hle/service/nvflinger/buffer_item_consumer.cpp | |
parent | yuzu/util: Replace lock_guard with scoped_lock (diff) | |
download | yuzu-d79274a5d973f6000e20df6261d7624c89cbff59.tar yuzu-d79274a5d973f6000e20df6261d7624c89cbff59.tar.gz yuzu-d79274a5d973f6000e20df6261d7624c89cbff59.tar.bz2 yuzu-d79274a5d973f6000e20df6261d7624c89cbff59.tar.lz yuzu-d79274a5d973f6000e20df6261d7624c89cbff59.tar.xz yuzu-d79274a5d973f6000e20df6261d7624c89cbff59.tar.zst yuzu-d79274a5d973f6000e20df6261d7624c89cbff59.zip |
Diffstat (limited to 'src/core/hle/service/nvflinger/buffer_item_consumer.cpp')
-rw-r--r-- | src/core/hle/service/nvflinger/buffer_item_consumer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_item_consumer.cpp b/src/core/hle/service/nvflinger/buffer_item_consumer.cpp index 93fa1ec10..d7ee5362b 100644 --- a/src/core/hle/service/nvflinger/buffer_item_consumer.cpp +++ b/src/core/hle/service/nvflinger/buffer_item_consumer.cpp @@ -21,7 +21,7 @@ Status BufferItemConsumer::AcquireBuffer(BufferItem* item, std::chrono::nanoseco return Status::BadValue; } - std::scoped_lock lock(mutex); + std::scoped_lock lock{mutex}; if (const auto status = AcquireBufferLocked(item, present_when); status != Status::NoError) { if (status != Status::NoBufferAvailable) { @@ -40,7 +40,7 @@ Status BufferItemConsumer::AcquireBuffer(BufferItem* item, std::chrono::nanoseco } Status BufferItemConsumer::ReleaseBuffer(const BufferItem& item, Fence& release_fence) { - std::scoped_lock lock(mutex); + std::scoped_lock lock{mutex}; if (const auto status = AddReleaseFenceLocked(item.buf, item.graphic_buffer, release_fence); status != Status::NoError) { |