This type implements a scoped guard for SpinLock.
Declared in <bsls_spinlock.h>
class SpinLockGuard;
| Name | Description |
|---|---|
SpinLockGuard [constructor] | Create a proctor object that manages the specified lock. Invoke lock->lock(). |
~SpinLockGuard [destructor] | Destroy this proctor object and invoke unlock() on the lock managed by this object. |
release | Stop managing the lock and return the pointer provided at construction. |