Go to the source code of this file.
Typedef Documentation
Function Documentation
Acquire the mutex, block if already acquired by another thread.
- Parameters:
-
Mutex | handle to a created mutex. |
- Returns:
- False if system-call fails.
SAL_DLLPUBLIC oslMutex osl_createMutex |
( |
void |
| ) |
|
Create a thread-local mutex.
- Returns:
- 0 if the mutex could not be created, otherwise a handle to the mutex.
SAL_DLLPUBLIC void osl_destroyMutex |
( |
oslMutex |
Mutex | ) |
|
Release the OS-structures and free mutex data-structure.
- Parameters:
-
SAL_DLLPUBLIC oslMutex* osl_getGlobalMutex |
( |
void |
| ) |
|
Returns a unique and global mutex.
- Returns:
- the global mutex.
Release the mutex.
- Parameters:
-
Mutex | handle to a created mutex. |
- Returns:
- False if system-call fails.
Try to acquire the mutex without blocking.
- Parameters:
-
Mutex | handle to a created mutex. |
- Returns:
- False if it could not be acquired.