From c589db6adde8e4706065b1ab00bd6814b39dc8bb Mon Sep 17 00:00:00 2001 From: Merry Date: Thu, 7 Apr 2022 19:30:55 +0100 Subject: common: Replace lock_guard with scoped_lock --- src/common/thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/thread.h') diff --git a/src/common/thread.h b/src/common/thread.h index a8c17c71a..626609372 100644 --- a/src/common/thread.h +++ b/src/common/thread.h @@ -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(); -- cgit v1.2.3