mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 21:19:18 +00:00
REnamed MutexPimpl to MutexImpl.
This commit is contained in:
parent
1e18163512
commit
5ce6b9c51b
@ -54,8 +54,8 @@ namespace Vaca {
|
||||
*/
|
||||
class VACA_DLL Mutex : private NonCopyable
|
||||
{
|
||||
class MutexPimpl;
|
||||
MutexPimpl* m_pimpl;
|
||||
class MutexImpl;
|
||||
MutexImpl* m_pimpl;
|
||||
|
||||
public:
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
}
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user