23 #include <osl/thread.hxx>
31 SolarMutex* g_pSolarMutex =
nullptr;
42 , m_aBeforeReleaseHandler( nullptr )
44 assert(!g_pSolarMutex);
50 g_pSolarMutex =
nullptr;
55 for ( sal_uInt32
n = nLockCount;
n ; --
n )
78 for ( sal_uInt32
n = nCount ;
n ; --
n )
86 return m_nThreadId == osl::Thread::getCurrentIdentifier();
BeforeReleaseHandler m_aBeforeReleaseHandler
virtual void doAcquire(sal_uInt32 nLockCount)
std::atomic< oslThreadIdentifier > m_nThreadId
static SolarMutex * get()
Help components to get the SolarMutex easily.
virtual bool tryToAcquire()
virtual bool IsCurrentThread() const
SolarMutex, needed for VCL's Application::GetSolarMutex().
virtual sal_uInt32 doRelease(bool bUnlockAll)