25 #ifndef REFCOUNTPTR_H_
26 #define REFCOUNTPTR_H_
36 template<
class MutexType>
134 ++(ptrRef->refcount);
145 bool destroy =
false;
147 --(ptrRef->refcount);
148 if(ptrRef->refcount <= 0)
150 if(ptrRef->releaseFunc)
152 (*ptrRef->releaseFunc)(ptrRef->pointee);
199 : sttcl::internal::
RefCountPtrBase<MutexType>(argPointee,argReleaseFunc)
210 : sttcl::internal::
RefCountPtrBase<MutexType>(static_cast<T*>(argPointee),argReleaseFunc)
233 T* dummy =
static_cast<T*
>(rhs.
get());
266 T* dummy =
static_cast<T*
>(rhs.
get());
321 static void release(
void* ptr);
328 void RefCountPtr<T,MutexType>::release(
void* ptr)
330 delete reinterpret_cast<T*
>(ptr);
336 template<
class MutexType>
339 static void release(
void* ptr)