Light-weight, portable wrapper of an OS-level mutex.
Declared in <bsls_bsllock.h>
class BslLock;
This class implements a light-weight, portable wrapper of an OS-level mutex to support intra-process synchronization. The mutex implemented by this class is non-recursive. Note that BslLock is not intended for direct use by client code; it is meant for internal use only.
| Name | Description |
|---|---|
BslLock [constructor] | Create a lock object initialized to the unlocked state. |
~BslLock [destructor] | Destroy this lock object. The behavior is undefined unless this object is in the unlocked state. |
lock | Acquire the lock on this object. |
unlock | Release the lock on this object. |