thread/Mutex: use using
instead of making it a derived class
Prepare the transition to std::mutex.
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user