From e0b72720ebf599e67dd0fd793cdaf83be62db567 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 7 Jun 2011 16:52:55 +0300 Subject: [PATCH] Remove the old commented out MutexPtr implementation --- source/core/mutex.h | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/source/core/mutex.h b/source/core/mutex.h index 050d00f..18f9039 100644 --- a/source/core/mutex.h +++ b/source/core/mutex.h @@ -70,31 +70,6 @@ private: T *data; }; -/*template -class MutexPtr: public RefCount -{ -public: - MutexPtr(T *d, Mutex &m): mutex(m), data(d) { mutex.lock(); } - MutexPtr(const MutexPtr &p): RefCount(p), mutex(p.mutex), data(p.data) { } - T &operator*() const { return *data; } - T *operator->() const { return data; } - void clear() { decref(); data = 0; } - ~MutexPtr() { decref(); } -protected: - Mutex &mutex; - T *data; - - bool decref() - { - if(!RefCount::decref()) - { - mutex.unlock(); - return false; - } - return true; - } -};*/ - } #endif -- 2.43.0