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

We need purely RAII-style, and this is std::lock_guard.
This commit is contained in:
Max Kellermann 2017-01-03 06:56:24 +01:00
parent 4484411a77
commit 2498a2b0bd

View File

@ -44,7 +44,7 @@ class Mutex : public PosixMutex {};
#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