Portable wrapper of an OS‐level mutex for intra‐process synchronization.
Synopsis
Declared in <bslmt_mutex.h>
class Mutex;
Description
This class implements a lightweight, portable wrapper of an OS‐level mutex lock to support intra‐process synchronization. The behavior is undefined if the lock method of this class is invoked more than once on the same mutex object in the same thread without an intervening call to unLock.
Type Aliases
Name |
Description |
|
Member Functions
Name |
Description |
|
Create a mutex object in the unlocked state. This method does not return normally unless there are sufficient system resources to construct the object. |
|
Destroy this mutex object. The behavior is undefined if the mutex is in a locked state. |
Acquire a lock on this mutex, blocking if necessary. |
|
Return a reference to the underlying OS‐level mutex. |
|
Attempt to acquire a lock on this mutex without blocking. |
|
Release a previously acquired lock on this mutex. |
Created with MrDocs