20 #ifndef INCLUDED_OSL_MUTEX_HXX
21 #define INCLUDED_OSL_MUTEX_HXX
244 #endif // INCLUDED_OSL_MUTEX_HXX
ResettableGuard(T *pT_)
Acquires the object specified as parameter.
Definition: mutex.hxx:214
T * pT
Definition: mutex.hxx:163
ResettableGuard< Mutex > ResettableMutexGuard
Definition: mutex.hxx:240
~Mutex()
Release the OS-structures and free mutex data-structure.
Definition: mutex.hxx:47
void clear()
Releases the mutex or interface.
Definition: mutex.hxx:190
SAL_DLLPUBLIC oslMutex * osl_getGlobalMutex(void)
Returns a unique and global mutex.
struct _oslMutexImpl * oslMutex
Definition: mutex.h:33
SAL_DLLPUBLIC sal_Bool osl_releaseMutex(oslMutex Mutex)
Release the mutex.
Mutex()
Create a mutex.
Definition: mutex.hxx:39
A helper class for mutex objects and interfaces.
Definition: mutex.hxx:123
SAL_DLLPUBLIC oslMutex osl_createMutex(void)
Create a mutex.
SAL_DLLPUBLIC sal_Bool osl_acquireMutex(oslMutex Mutex)
Acquire the mutex, block if already acquired by another thread.
void reset()
Re-aquires the mutex or interface.
Definition: mutex.hxx:228
sal_Bool release()
Release the mutex.
Definition: mutex.hxx:74
static Mutex * getGlobalMutex()
Returns a global static mutex object.
Definition: mutex.hxx:85
SAL_DLLPUBLIC void osl_destroyMutex(oslMutex Mutex)
Release the OS-structures and free mutex data-structure.
~Guard()
Releases the mutex or interface.
Definition: mutex.hxx:148
A helper class for mutex objects and interfaces.
Definition: mutex.hxx:157
~ClearableGuard()
Releases the mutex or interface if not already released by clear().
Definition: mutex.hxx:182
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:591
sal_Bool tryToAcquire()
Try to acquire the mutex without blocking.
Definition: mutex.hxx:65
Guard(T *pT_)
Acquires the object specified as parameter.
Definition: mutex.hxx:135
ClearableGuard(T &t)
Acquires the object specified as parameter.
Definition: mutex.hxx:175
A mutual exclusion synchronization object.
Definition: mutex.hxx:32
SAL_DLLPUBLIC sal_Bool osl_tryToAcquireMutex(oslMutex Mutex)
Try to acquire the mutex without blocking.
ClearableGuard< Mutex > ClearableMutexGuard
Definition: mutex.hxx:239
ClearableGuard(T *pT_)
Acquires the object specified as parameter.
Definition: mutex.hxx:168
unsigned char sal_Bool
Definition: types.h:46
ResettableGuard(T &rT)
Acquires the object specified as parameter.
Definition: mutex.hxx:221
T * pT
Definition: mutex.hxx:130
T * pResetT
Definition: mutex.hxx:210
sal_Bool acquire()
Acquire the mutex, block if already acquired by another thread.
Definition: mutex.hxx:56
Guard(T &t)
Acquires the object specified as parameter.
Definition: mutex.hxx:142
A helper class for mutex objects and interfaces.
Definition: mutex.hxx:203
Guard< Mutex > MutexGuard
Definition: mutex.hxx:238