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 MutexPimpl;
MutexPimpl* m_pimpl;
class MutexImpl;
MutexImpl* m_pimpl;
public:

View File

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

View File

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

View File

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