LibreOffice
LibreOffice 6.0 SDK C/C++ API Reference
|
Go to the documentation of this file.
20 #ifndef INCLUDED_OSL_MUTEX_HXX
21 #define INCLUDED_OSL_MUTEX_HXX
229 #endif // INCLUDED_OSL_MUTEX_HXX
T * pResetT
Definition: mutex.hxx:196
T * pT
Definition: mutex.hxx:149
SAL_DLLPUBLIC sal_Bool osl_tryToAcquireMutex(oslMutex Mutex)
Try to acquire the mutex without blocking.
~ClearableGuard()
Releases the mutex or interface if not already released by clear().
Definition: mutex.hxx:168
bool acquire()
Acquire the mutex, block if already acquired by another thread.
Definition: mutex.hxx:54
T * pT
Definition: mutex.hxx:115
ClearableGuard< Mutex > ClearableMutexGuard
Definition: mutex.hxx:225
static Mutex * getGlobalMutex()
Returns a global static mutex object.
Definition: mutex.hxx:83
ResettableGuard< Mutex > ResettableMutexGuard
Definition: mutex.hxx:226
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:606
bool release()
Release the mutex.
Definition: mutex.hxx:72
~Mutex()
Release the OS-structures and free mutex data-structure.
Definition: mutex.hxx:45
ClearableGuard(T *pT_)
Acquires the object specified as parameter.
Definition: mutex.hxx:154
SAL_DLLPUBLIC sal_Bool osl_releaseMutex(oslMutex Mutex)
Release the mutex.
Guard(T &t)
Acquires the object specified as parameter.
Definition: mutex.hxx:127
Definition: conditn.hxx:36
Mutex()
Create a mutex.
Definition: mutex.hxx:37
~Guard()
Releases the mutex or interface.
Definition: mutex.hxx:133
ClearableGuard(T &t)
Acquires the object specified as parameter.
Definition: mutex.hxx:161
SAL_DLLPUBLIC sal_Bool osl_acquireMutex(oslMutex Mutex)
Acquire the mutex, block if already acquired by another thread.
ResettableGuard(T &rT)
Acquires the object specified as parameter.
Definition: mutex.hxx:207
bool tryToAcquire()
Try to acquire the mutex without blocking.
Definition: mutex.hxx:63
SAL_DLLPUBLIC oslMutex * osl_getGlobalMutex(void)
Returns a unique and global mutex.
ResettableGuard(T *pT_)
Acquires the object specified as parameter.
Definition: mutex.hxx:200
A helper class for mutex objects and interfaces.
Definition: mutex.hxx:108
Guard< Mutex > MutexGuard
Definition: mutex.hxx:224
void clear()
Releases the mutex or interface.
Definition: mutex.hxx:176
SAL_DLLPUBLIC void osl_destroyMutex(oslMutex Mutex)
Release the OS-structures and free mutex data-structure.
A helper class for mutex objects and interfaces.
Definition: mutex.hxx:189
A mutual exclusion synchronization object.
Definition: mutex.hxx:30
SAL_DLLPUBLIC oslMutex osl_createMutex(void)
Create a mutex.
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:402
A helper class for mutex objects and interfaces.
Definition: mutex.hxx:142
void reset()
Re-acquires the mutex or interface.
Definition: mutex.hxx:214
struct _oslMutexImpl * oslMutex
Definition: mutex.h:33
Guard(T *pT_)
Acquires the object specified as parameter.
Definition: mutex.hxx:120