|
LibreOffice
LibreOffice 7.2 SDK C/C++ API Reference
|
Go to the documentation of this file.
24 #ifndef INCLUDED_SALHELPER_SIMPLEREFERENCEOBJECT_HXX
25 #define INCLUDED_SALHELPER_SIMPLEREFERENCEOBJECT_HXX
73 { osl_atomic_increment(&m_nCount); }
76 {
if (osl_atomic_decrement(&m_nCount) == 0)
delete this; }
80 static void *
operator new(std::size_t nSize);
84 static void *
operator new(std::size_t nSize,
85 std::nothrow_t
const & rNothrow);
89 static void operator delete(
void * pPtr);
93 static void operator delete(
void * pPtr, std::nothrow_t
const & rNothrow);
120 #endif // INCLUDED_SALHELPER_SIMPLEREFERENCEOBJECT_HXX
#define SALHELPER_DLLPUBLIC
Definition: salhelperdllapi.h:32
void acquire()
Definition: simplereferenceobject.hxx:72
A simple base implementation for reference-counted objects.
Definition: simplereferenceobject.hxx:62
void release()
Definition: simplereferenceobject.hxx:75
Definition: condition.hxx:34
sal_Int32 oslInterlockedCount
Definition: interlck.h:44
SimpleReferenceObject()
Definition: simplereferenceobject.hxx:64
#define COVERITY_NOEXCEPT_FALSE
To markup destructors that coverity warns might throw exceptions which won't throw in practice,...
Definition: types.h:349
virtual ~SimpleReferenceObject() COVERITY_NOEXCEPT_FALSE
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:378