20 #ifndef INCLUDED_SALHELPER_SIMPLEREFERENCEOBJECT_HXX
21 #define INCLUDED_SALHELPER_SIMPLEREFERENCEOBJECT_HXX
69 { osl_atomic_increment(&m_nCount); }
72 {
if (osl_atomic_decrement(&m_nCount) == 0)
delete this; }
76 static void *
operator new(std::size_t nSize);
80 static void *
operator new(std::size_t nSize,
81 std::nothrow_t
const & rNothrow);
85 static void operator delete(
void * pPtr);
89 static void operator delete(
void * pPtr, std::nothrow_t
const & rNothrow);
107 static
void * operator new[](std::
size_t) SAL_DELETED_FUNCTION;
111 static
void operator delete[](
void * pPtr) SAL_DELETED_FUNCTION;
116 #endif // INCLUDED_SALHELPER_SIMPLEREFERENCEOBJECT_HXX
void acquire()
Definition: simplereferenceobject.hxx:68
sal_Int32 oslInterlockedCount
Definition: interlck.h:40
A simple base implementation for reference-counted objects.
Definition: simplereferenceobject.hxx:57
SimpleReferenceObject()
Definition: simplereferenceobject.hxx:60
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:374
#define COVERITY_NOEXCEPT_FALSE
To markup destructors that coverity warns might throw exceptions which won't throw in practice...
Definition: types.h:333
void release()
Definition: simplereferenceobject.hxx:71
#define SALHELPER_DLLPUBLIC
Definition: salhelperdllapi.h:28