20 #ifndef INCLUDED_OSL_MUTEX_HXX 21 #define INCLUDED_OSL_MUTEX_HXX 110 Mutex& operator= (
const Mutex&);
241 #endif // INCLUDED_OSL_MUTEX_HXX SAL_DLLPUBLIC oslMutex osl_createMutex(void)
Create a mutex.
ClearableGuard(T &t)
Acquires the object specified as parameter.
Definition: mutex.hxx:173
void clear()
Releases the mutex or interface.
Definition: mutex.hxx:188
SAL_DLLPUBLIC oslMutex * osl_getGlobalMutex(void)
Returns a unique and global mutex.
T * pT
Definition: mutex.hxx:128
Guard< Mutex > MutexGuard
Definition: mutex.hxx:236
bool tryToAcquire()
Try to acquire the mutex without blocking.
Definition: mutex.hxx:63
~ClearableGuard()
Releases the mutex or interface if not already released by clear().
Definition: mutex.hxx:180
Definition: conditn.hxx:28
void reset()
Re-aquires the mutex or interface.
Definition: mutex.hxx:226
ResettableGuard(T &rT)
Acquires the object specified as parameter.
Definition: mutex.hxx:219
ResettableGuard< Mutex > ResettableMutexGuard
Definition: mutex.hxx:238
Guard(T &t)
Acquires the object specified as parameter.
Definition: mutex.hxx:140
Mutex()
Create a mutex.
Definition: mutex.hxx:37
A helper class for mutex objects and interfaces.
Definition: mutex.hxx:155
~Mutex()
Release the OS-structures and free mutex data-structure.
Definition: mutex.hxx:45
struct _oslMutexImpl * oslMutex
Definition: mutex.h:33
ResettableGuard(T *pT_)
Acquires the object specified as parameter.
Definition: mutex.hxx:212
T * pT
Definition: mutex.hxx:161
bool acquire()
Acquire the mutex, block if already acquired by another thread.
Definition: mutex.hxx:54
~Guard()
Releases the mutex or interface.
Definition: mutex.hxx:146
T * pResetT
Definition: mutex.hxx:208
ClearableGuard< Mutex > ClearableMutexGuard
Definition: mutex.hxx:237
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:588
SAL_DLLPUBLIC sal_Bool osl_releaseMutex(oslMutex Mutex)
Release the mutex.
SAL_DLLPUBLIC sal_Bool osl_acquireMutex(oslMutex Mutex)
Acquire the mutex, block if already acquired by another thread.
A mutual exclusion synchronization object.
Definition: mutex.hxx:30
A helper class for mutex objects and interfaces.
Definition: mutex.hxx:201
A helper class for mutex objects and interfaces.
Definition: mutex.hxx:121
SAL_DLLPUBLIC void osl_destroyMutex(oslMutex Mutex)
Release the OS-structures and free mutex data-structure.
ClearableGuard(T *pT_)
Acquires the object specified as parameter.
Definition: mutex.hxx:166
static Mutex * getGlobalMutex()
Returns a global static mutex object.
Definition: mutex.hxx:83
bool release()
Release the mutex.
Definition: mutex.hxx:72
Guard(T *pT_)
Acquires the object specified as parameter.
Definition: mutex.hxx:133
SAL_DLLPUBLIC sal_Bool osl_tryToAcquireMutex(oslMutex Mutex)
Try to acquire the mutex without blocking.