common: Replace lock_guard with scoped_lock

This commit is contained in:
Merry 2022-04-07 19:30:55 +01:00
parent 4265372099
commit c589db6add
3 changed files with 5 additions and 5 deletions

View file

@ -17,7 +17,7 @@ namespace Common {
class Event {
public:
void Set() {
std::lock_guard lk{mutex};
std::scoped_lock lk{mutex};
if (!is_set) {
is_set = true;
condvar.notify_one();