From 7c1cf617282c591dff85df164c178198a0ce7738 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Oct 2013 10:06:31 +0200 Subject: thread/{Cond,Mutex}: use "class" instead of "typedef" Allows forward-declaration. --- src/thread/Mutex.hxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/thread/Mutex.hxx') 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 -- cgit v1.2.3