Commit 2498a2b0 authored by Max Kellermann's avatar Max Kellermann

thread/Mutex: use std::lock_guard instead of std::unique_lock

We need purely RAII-style, and this is std::lock_guard.
parent 4484411a
...@@ -44,7 +44,7 @@ class Mutex : public PosixMutex {}; ...@@ -44,7 +44,7 @@ class Mutex : public PosixMutex {};
#endif #endif
using ScopeLock = std::unique_lock<Mutex>; using ScopeLock = std::lock_guard<Mutex>;
/** /**
* Within the scope of an instance, this class will keep a #Mutex * Within the scope of an instance, this class will keep a #Mutex
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment