diff options
author | Max Kellermann <max@musicpd.org> | 2019-05-07 19:23:01 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-05-07 19:23:01 +0200 |
commit | 0a0cc66e8f9eb1646b54262cf233fc8ce20389af (patch) | |
tree | abcdaf4a5dbaf343e9c0898db70e60d25a14936e /src/thread | |
parent | 1b5c1f75a401623cd279466dcb99f8e718d8c7c4 (diff) |
thread/Mutex: use `using` instead of making it a derived class
Prepare the transition to std::mutex.
Diffstat (limited to 'src/thread')
-rw-r--r-- | src/thread/Mutex.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread/Mutex.hxx b/src/thread/Mutex.hxx index f1aa03cb2..a28bb13a7 100644 --- a/src/thread/Mutex.hxx +++ b/src/thread/Mutex.hxx @@ -35,12 +35,12 @@ #ifdef _WIN32 #include "CriticalSection.hxx" -class Mutex : public CriticalSection {}; +using Mutex = CriticalSection; #else #include "PosixMutex.hxx" -class Mutex : public PosixMutex {}; +using Mutex = PosixMutex; #endif |