video_core: Replace lock_guard with scoped_lock

This commit is contained in:
Merry 2022-04-07 19:32:40 +01:00
parent 159ae5e47c
commit bbc585881a
11 changed files with 18 additions and 18 deletions

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