24 #ifndef INCLUDED_SALHELPER_REFOBJ_HXX 25 #define INCLUDED_SALHELPER_REFOBJ_HXX 52 static void*
operator new (
size_t n)
56 static void operator delete (
void* p)
60 static void*
operator new (size_t,
void* p)
64 static void operator delete (
void*,
void*)
76 osl_atomic_increment(&m_nReferenceCount);
81 if (osl_atomic_decrement(&m_nReferenceCount) == 0)
93 assert(m_nReferenceCount == 0);
virtual ~ReferenceObject()
Destruction.
Definition: refobj.hxx:91
void release()
Definition: refobj.hxx:79
ReferenceObject()
Construction.
Definition: refobj.hxx:70
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:378
A base implementation for reference-counted objects.
Definition: refobj.hxx:40
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
void acquire()
Definition: refobj.hxx:74
sal_Int32 oslInterlockedCount
Definition: interlck.h:44
Definition: condition.hxx:33
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.