video_core: Replace lock_guard with scoped_lock

This commit is contained in:
Merry committed 2022-04-07 19:44:07 +01:00
1 parent b02d74d113
commit e8a60754e9
11 files changed
+18 -18

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@ static void RunThread(std::stop_token stop_token, Core::System& system,
if (next.block) {
// We have to lock the write_lock to ensure that the condition_variable wait not get a
// race between the check and the lock itself.
std::lock_guard lk(state.write_lock);
std::scoped_lock lk{state.write_lock};
state.cv.notify_all();
}
}