diff options
author | bunnei <bunneidev@gmail.com> | 2022-03-26 06:59:06 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-03-26 06:59:06 +0100 |
commit | 07c7f96fb2d18ee0268d2c19150d4457f23c3778 (patch) | |
tree | adb133d6b6797d97d49fb890c237428355402cec /src/core | |
parent | hle: service: nvflinger: consumer_base: Use scoped_lock instead of unique_lock. (diff) | |
download | yuzu-07c7f96fb2d18ee0268d2c19150d4457f23c3778.tar yuzu-07c7f96fb2d18ee0268d2c19150d4457f23c3778.tar.gz yuzu-07c7f96fb2d18ee0268d2c19150d4457f23c3778.tar.bz2 yuzu-07c7f96fb2d18ee0268d2c19150d4457f23c3778.tar.lz yuzu-07c7f96fb2d18ee0268d2c19150d4457f23c3778.tar.xz yuzu-07c7f96fb2d18ee0268d2c19150d4457f23c3778.tar.zst yuzu-07c7f96fb2d18ee0268d2c19150d4457f23c3778.zip |
Diffstat (limited to 'src/core')
-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 7f32c0775..93fa1ec10 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::unique_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::unique_lock lock(mutex); + std::scoped_lock lock(mutex); if (const auto status = AddReleaseFenceLocked(item.buf, item.graphic_buffer, release_fence); status != Status::NoError) { |