summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-26 06:58:52 +0100
committerbunnei <bunneidev@gmail.com>2022-03-26 06:58:52 +0100
commit13aa0a1f2401fe4dc4ee33646b4893ca63665c54 (patch)
tree5b39fedf8bdd77245f7d26897d4967846b8aac9f /src/core/hle
parenthle: service: nvflinger: Remove unused BufferQueue. (diff)
downloadyuzu-13aa0a1f2401fe4dc4ee33646b4893ca63665c54.tar
yuzu-13aa0a1f2401fe4dc4ee33646b4893ca63665c54.tar.gz
yuzu-13aa0a1f2401fe4dc4ee33646b4893ca63665c54.tar.bz2
yuzu-13aa0a1f2401fe4dc4ee33646b4893ca63665c54.tar.lz
yuzu-13aa0a1f2401fe4dc4ee33646b4893ca63665c54.tar.xz
yuzu-13aa0a1f2401fe4dc4ee33646b4893ca63665c54.tar.zst
yuzu-13aa0a1f2401fe4dc4ee33646b4893ca63665c54.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/nvflinger/consumer_base.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/nvflinger/consumer_base.cpp b/src/core/hle/service/nvflinger/consumer_base.cpp
index 3ccbb7fb8..be65a3f88 100644
--- a/src/core/hle/service/nvflinger/consumer_base.cpp
+++ b/src/core/hle/service/nvflinger/consumer_base.cpp
@@ -18,7 +18,7 @@ ConsumerBase::ConsumerBase(std::unique_ptr<BufferQueueConsumer> consumer_)
: consumer{std::move(consumer_)} {}
ConsumerBase::~ConsumerBase() {
- std::unique_lock lock(mutex);
+ std::scoped_lock lock(mutex);
ASSERT_MSG(is_abandoned, "consumer is not abandoned!");
}
@@ -36,17 +36,17 @@ void ConsumerBase::FreeBufferLocked(s32 slot_index) {
}
void ConsumerBase::OnFrameAvailable(const BufferItem& item) {
- std::unique_lock lock(mutex);
+ std::scoped_lock lock(mutex);
LOG_DEBUG(Service_NVFlinger, "called");
}
void ConsumerBase::OnFrameReplaced(const BufferItem& item) {
- std::unique_lock lock(mutex);
+ std::scoped_lock lock(mutex);
LOG_DEBUG(Service_NVFlinger, "called");
}
void ConsumerBase::OnBuffersReleased() {
- std::unique_lock lock(mutex);
+ std::scoped_lock lock(mutex);
LOG_DEBUG(Service_NVFlinger, "called");
}