mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-28 18:32:50 +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 VACA_DLL Mutex : private NonCopyable
|
||||||
{
|
{
|
||||||
class MutexPimpl;
|
class MutexImpl;
|
||||||
MutexPimpl* m_pimpl;
|
MutexImpl* m_pimpl;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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);
|
||||||
}
|
}
|
@ -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);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user