| LibreOffice
    LibreOffice 24.8 SDK C/C++ API Reference | 
A mutual exclusion synchronization object. More...
#include <mutex.hxx>
| Public Member Functions | |
| Mutex () | |
| Create a mutex. | |
| ~Mutex () | |
| Release the OS-structures and free mutex data-structure. | |
| bool | acquire () | 
| Acquire the mutex, block if already acquired by another thread. | |
| bool | tryToAcquire () | 
| Try to acquire the mutex without blocking. | |
| bool | release () | 
| Release the mutex. | |
| Static Public Member Functions | |
| static Mutex * | getGlobalMutex () | 
| Returns a global static mutex object. | |
| Friends | |
| oslMutex * | osl_getGlobalMutex (void) | 
| Returns a unique and global mutex. | |
A mutual exclusion synchronization object.
| 
 | inline | 
Create a mutex.
The mutex value is 0 if it could not be created, otherwise a handle to the mutex.
| 
 | inline | 
Release the OS-structures and free mutex data-structure.
| 
 | inline | 
Acquire the mutex, block if already acquired by another thread.
| 
 | inlinestatic | 
Returns a global static mutex object.
The global and static mutex object can be used to initialize other static objects in a thread safe manner.
| 
 | inline | 
| 
 | inline | 
Try to acquire the mutex without blocking.
| 
 | friend | 
Returns a unique and global mutex.