event/Call: use std::lock_guard
This commit is contained in:
parent
d38a079ba1
commit
5bc8cd0ecb
@ -71,10 +71,9 @@ private:
|
|||||||
exception = std::current_exception();
|
exception = std::current_exception();
|
||||||
}
|
}
|
||||||
|
|
||||||
mutex.lock();
|
const std::lock_guard<Mutex> lock(mutex);
|
||||||
done = true;
|
done = true;
|
||||||
cond.signal();
|
cond.signal();
|
||||||
mutex.unlock();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user