2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

hle: nvflinger: buffer_queue_core: Cleanup locking.

This commit is contained in:
bunnei 2022-03-19 21:53:47 -07:00
parent 650c9d0d62
commit 53058ae73f

View file

@ -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);
}
}