aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread/Mutex.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-17 10:06:31 +0200
committerMax Kellermann <max@duempel.org>2013-10-17 10:06:31 +0200
commit7c1cf617282c591dff85df164c178198a0ce7738 (patch)
treec94cfbbeaefd9eb380ac44de7bb3c6e7c8c59ce1 /src/thread/Mutex.hxx
parenteb10d08671f3c3db2049b19a9959fe8c62532f35 (diff)
downloadmpd-7c1cf617282c591dff85df164c178198a0ce7738.tar.gz
mpd-7c1cf617282c591dff85df164c178198a0ce7738.tar.xz
mpd-7c1cf617282c591dff85df164c178198a0ce7738.zip
thread/{Cond,Mutex}: use "class" instead of "typedef"
Allows forward-declaration.
Diffstat (limited to 'src/thread/Mutex.hxx')
-rw-r--r--src/thread/Mutex.hxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/thread/Mutex.hxx b/src/thread/Mutex.hxx
index 675af74b1..4ed48c972 100644
--- a/src/thread/Mutex.hxx
+++ b/src/thread/Mutex.hxx
@@ -25,13 +25,12 @@
/* mingw-w64 4.6.3 lacks a std::mutex implementation */
#include "CriticalSection.hxx"
-typedef CriticalSection Mutex;
+class Mutex : public CriticalSection {};
#else
#include "PosixMutex.hxx"
-
-typedef PosixMutex Mutex;
+class Mutex : public PosixMutex {};
#endif