X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_handle.h;h=13af09b2fbc5786236ac915939d740c68f0f4a98;hb=ed5137b5f3a34d83207e80d9c96087eddab14379;hp=6a46f85ae683cf363d88a8dbd37558bf7fa4edce;hpb=5f8bb1a790e48650f65f34523efc133a140b6609;p=synfig.git 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; }