mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 12:15:45 +00:00
common: Replace lock_guard with scoped_lock
This commit is contained in:
parent
a426c9e941
commit
ae642bbff2
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