From ed5137b5f3a34d83207e80d9c96087eddab14379 Mon Sep 17 00:00:00 2001 From: dooglus Date: Mon, 15 Oct 2007 00:50:24 +0000 Subject: [PATCH] Use Synfig::Mutex instead of Glib::Mutex. git-svn-id: http://svn.voria.com/code@932 1f10aa63-cdf2-0310-b900-c93c546f37ac --- ETL/trunk/ETL/_handle.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ETL/trunk/ETL/_handle.h b/ETL/trunk/ETL/_handle.h index 6a46f85..13af09b 100644 --- a/ETL/trunk/ETL/_handle.h +++ b/ETL/trunk/ETL/_handle.h @@ -36,7 +36,7 @@ #include #ifdef ETL_LOCK_REFCOUNTS -#include +#include #endif /* === M A C R O S ========================================================= */ @@ -73,7 +73,7 @@ class shared_object private: mutable int refcount; #ifdef ETL_LOCK_REFCOUNTS - mutable Glib::Mutex mutex; + mutable synfig::Mutex mutex; #endif protected: @@ -89,7 +89,7 @@ public: void ref()const { #ifdef ETL_LOCK_REFCOUNTS - Glib::Mutex::Lock lock(mutex); + synfig::Mutex::Lock lock(mutex); #endif assert(refcount>=0); refcount++; } @@ -98,7 +98,7 @@ public: bool unref()const { #ifdef ETL_LOCK_REFCOUNTS - Glib::Mutex::Lock lock(mutex); + synfig::Mutex::Lock lock(mutex); #endif assert(refcount>0); @@ -108,7 +108,7 @@ public: #ifdef ETL_SELF_DELETING_SHARED_OBJECT refcount=-666; #ifdef ETL_LOCK_REFCOUNTS - lock.release(); + mutex.unlock(); #endif delete this; #endif @@ -121,7 +121,7 @@ public: int count()const { #ifdef ETL_LOCK_REFCOUNTS - Glib::Mutex::Lock lock(mutex); + synfig::Mutex::Lock lock(mutex); #endif return refcount; } -- 2.7.4