common: Replace lock_guard with scoped_lock
This commit is contained in:
parent
4265372099
commit
c589db6add
3 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue