20 #ifndef INCLUDED_SALHELPER_REFOBJ_HXX 21 #define INCLUDED_SALHELPER_REFOBJ_HXX 47 static void*
operator new (
size_t n)
51 static void operator delete (
void* p)
55 static void*
operator new (size_t,
void* p)
59 static void operator delete (
void*,
void*)
71 osl_atomic_increment(&m_nReferenceCount);
76 if (osl_atomic_decrement(&m_nReferenceCount) == 0)
Definition: condition.hxx:29
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:408
virtual ~ReferenceObject()
Destruction.
Definition: refobj.hxx:86
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
A base implementation for reference-counted objects.
Definition: refobj.hxx:35
void release()
Definition: refobj.hxx:74
sal_Int32 oslInterlockedCount
Definition: interlck.h:32
void acquire()
Definition: refobj.hxx:69
ReferenceObject()
Construction.
Definition: refobj.hxx:65
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
#define OSL_ASSERT(c)
Definition: diagnose.h:99