REnamed MutexPimpl to MutexImpl.

This commit is contained in:
David Capello 2010-03-10 01:07:02 -02:00
parent 1e18163512
commit 5ce6b9c51b
4 changed files with 13 additions and 13 deletions

View File

@ -54,8 +54,8 @@ namespace Vaca {
*/ */
class VACA_DLL Mutex : private NonCopyable class VACA_DLL Mutex : private NonCopyable
{ {
class MutexPimpl; class MutexImpl;
MutexPimpl* m_pimpl; MutexImpl* m_pimpl;
public: public:

View File

@ -32,16 +32,16 @@
#include "Vaca/Mutex.h" #include "Vaca/Mutex.h"
#if defined(VACA_WINDOWS) #if defined(VACA_WINDOWS)
#include "win32/MutexPimpl.h" #include "win32/MutexImpl.h"
#elif defined(VACA_ALLEGRO) #elif defined(VACA_ALLEGRO)
#include <allegro/base.h> #include <allegro/base.h>
#if defined(ALLEGRO_WINDOWS) #if defined(ALLEGRO_WINDOWS)
#include "win32/MutexPimpl.h" #include "win32/MutexImpl.h"
#else #else
#include "unix/MutexPimpl.h" #include "unix/MutexImpl.h"
#endif #endif
#else #else
#include "unix/MutexPimpl.h" #include "unix/MutexImpl.h"
#endif #endif
using namespace Vaca; using namespace Vaca;
@ -55,7 +55,7 @@ using namespace Vaca;
*/ */
Mutex::Mutex() Mutex::Mutex()
{ {
m_pimpl = new MutexPimpl(); m_pimpl = new MutexImpl();
} }
/** /**

View File

@ -31,18 +31,18 @@
#include <pthread.h> #include <pthread.h>
class Vaca::Mutex::MutexPimpl class Vaca::Mutex::MutexImpl
{ {
pthread_mutex_t m_handle; pthread_mutex_t m_handle;
public: public:
MutexPimpl() MutexImpl()
{ {
pthread_mutex_init(&m_handle, NULL); pthread_mutex_init(&m_handle, NULL);
} }
~MutexPimpl() ~MutexImpl()
{ {
pthread_mutex_destroy(&m_handle); pthread_mutex_destroy(&m_handle);
} }

View File

@ -31,18 +31,18 @@
#include <windows.h> #include <windows.h>
class Vaca::Mutex::MutexPimpl class Vaca::Mutex::MutexImpl
{ {
CRITICAL_SECTION m_handle; CRITICAL_SECTION m_handle;
public: public:
MutexPimpl() MutexImpl()
{ {
InitializeCriticalSection(&m_handle); InitializeCriticalSection(&m_handle);
} }
~MutexPimpl() ~MutexImpl()
{ {
DeleteCriticalSection(&m_handle); DeleteCriticalSection(&m_handle);
} }