X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fmutex.h;fp=source%2Fcore%2Fmutex.h;h=18f9039227e1feb19e7860811e7487a2338dfd9a;hp=050d00f808a6d42f29e8cbf14744e935bad604d4;hb=e0b72720ebf599e67dd0fd793cdaf83be62db567;hpb=d3fc0bf0f20f100f2831188c1ce21461d21c2c7a 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