4 #ifndef INCLUDED_SALHELPER_SIMPLEREFERENCEOBJECT_HXX
5 #define INCLUDED_SALHELPER_SIMPLEREFERENCEOBJECT_HXX
53 { osl_atomic_increment(&m_nCount); }
56 {
if (osl_atomic_decrement(&m_nCount) == 0)
delete this; }
60 static void *
operator new(std::size_t nSize);
64 static void *
operator new(std::size_t nSize,
65 std::nothrow_t
const & rNothrow);
69 static void operator delete(
void * pPtr);
73 static void operator delete(
void * pPtr, std::nothrow_t
const & rNothrow);
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:358
#define COVERITY_NOEXCEPT_FALSE
To markup destructors that coverity warns might throw exceptions which won't throw in practice,...
Definition: types.h:329
#define SALHELPER_DLLPUBLIC
Definition: salhelperdllapi.h:12
sal_Int32 oslInterlockedCount
Definition: interlck.h:24
Definition: condition.hxx:14
A simple base implementation for reference-counted objects.
Definition: simplereferenceobject.hxx:42
virtual ~SimpleReferenceObject() COVERITY_NOEXCEPT_FALSE
void release()
Definition: simplereferenceobject.hxx:55
SimpleReferenceObject()
Definition: simplereferenceobject.hxx:44
void acquire()
Definition: simplereferenceobject.hxx:52