thread/{Cond,Mutex}: use "class" instead of "typedef"

Allows forward-declaration.
This commit is contained in:
Max Kellermann
2013-10-17 10:06:31 +02:00
parent eb10d08671
commit 7c1cf61728
19 changed files with 25 additions and 21 deletions

View File

@@ -25,12 +25,12 @@
/* mingw-w64 4.6.3 lacks a std::cond implementation */
#include "WindowsCond.hxx"
typedef WindowsCond Cond;
class Cond : public WindowsCond {};
#else
#include "PosixCond.hxx"
typedef PosixCond Cond;
class Cond : public PosixCond {};
#endif

View File

@@ -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