20 #ifndef INCLUDED_OSL_MUTEX_HXX 21 #define INCLUDED_OSL_MUTEX_HXX 188 #ifdef LIBO_INTERNAL_ONLY 235 #ifdef LIBO_INTERNAL_ONLY 251 #endif // INCLUDED_OSL_MUTEX_HXX Guard(T *pT_)
Acquires the object specified as parameter.
Definition: mutex.hxx:125
Guard(T &t)
Acquires the object specified as parameter.
Definition: mutex.hxx:133
ClearableGuard(T *pT_)
Acquires the object specified as parameter.
Definition: mutex.hxx:163
SAL_DLLPUBLIC oslMutex * osl_getGlobalMutex(void)
Returns a unique and global mutex.
Mutex()
Create a mutex.
Definition: mutex.hxx:38
SAL_DLLPUBLIC sal_Bool osl_tryToAcquireMutex(oslMutex Mutex)
Try to acquire the mutex without blocking.
static Mutex * getGlobalMutex()
Returns a global static mutex object.
Definition: mutex.hxx:84
Object lifetime scoped mutex object or interface lock with unlock.
Definition: mutex.hxx:152
Definition: condition.hxx:28
bool release()
Release the mutex.
Definition: mutex.hxx:73
ClearableGuard(T &t)
Acquires the object specified as parameter.
Definition: mutex.hxx:171
~ClearableGuard()
Releases the mutex or interface if not already released by clear().
Definition: mutex.hxx:178
void clear()
Releases the mutex or interface.
Definition: mutex.hxx:186
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:396
~Mutex()
Release the OS-structures and free mutex data-structure.
Definition: mutex.hxx:46
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:578
SAL_DLLPUBLIC void osl_destroyMutex(oslMutex Mutex)
Release the OS-structures and free mutex data-structure.
Guard< Mutex > MutexGuard
Definition: mutex.hxx:246
SAL_DLLPUBLIC sal_Bool osl_releaseMutex(oslMutex Mutex)
Release the mutex.
ClearableGuard< Mutex > ClearableMutexGuard
Definition: mutex.hxx:247
ResettableGuard(T &rT)
Acquires the object specified as parameter.
Definition: mutex.hxx:226
SAL_DLLPUBLIC oslMutex osl_createMutex(void)
Create a mutex.
Object lifetime scoped mutex object or interface lock.
Definition: mutex.hxx:114
T * pT
Definition: mutex.hxx:120
T * pResetT
Definition: mutex.hxx:214
Template for temporary releasable mutex objects and interfaces locks.
Definition: mutex.hxx:208
ResettableGuard< Mutex > ResettableMutexGuard
Definition: mutex.hxx:248
A mutual exclusion synchronization object.
Definition: mutex.hxx:31
void reset()
Re-acquires the mutex or interface.
Definition: mutex.hxx:233
bool acquire()
Acquire the mutex, block if already acquired by another thread.
Definition: mutex.hxx:55
ResettableGuard(T *pT_)
Acquires the object specified as parameter.
Definition: mutex.hxx:219
T * pT
Definition: mutex.hxx:158
~Guard()
Releases the mutex or interface.
Definition: mutex.hxx:139
SAL_DLLPUBLIC sal_Bool osl_acquireMutex(oslMutex Mutex)
Acquire the mutex, block if already acquired by another thread.
struct _oslMutexImpl * oslMutex
Definition: mutex.h:33
bool tryToAcquire()
Try to acquire the mutex without blocking.
Definition: mutex.hxx:64