From 1d3118ec21f537695dc0e6a9608acd67396d0a51 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Oct 2012 03:29:39 +0300 Subject: Delete copy constructor from other classes. --- src/utils/mutex.h | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) (limited to 'src/utils/mutex.h') diff --git a/src/utils/mutex.h b/src/utils/mutex.h index fe560e354..3ea607029 100644 --- a/src/utils/mutex.h +++ b/src/utils/mutex.h @@ -33,18 +33,22 @@ */ class Mutex { -public: - Mutex(); - ~Mutex(); + public: + Mutex(); - void lock(); - void unlock(); + A_DELETE_COPY(Mutex); -private: - Mutex(const Mutex&); // prevent copying - Mutex& operator=(const Mutex&); + ~Mutex(); - SDL_mutex *mMutex; + void lock(); + + void unlock(); + + private: +// Mutex(const Mutex&); // prevent copying +// Mutex& operator=(const Mutex&); + + SDL_mutex *mMutex; }; /** @@ -52,12 +56,13 @@ private: */ class MutexLocker { -public: - MutexLocker(Mutex *mutex); - ~MutexLocker(); + public: + MutexLocker(Mutex *mutex); + + ~MutexLocker(); -private: - Mutex *mMutex; + private: + Mutex *mMutex; }; -- cgit v1.2.3-60-g2f50