BloombergLP::bsls::SpinLockGuard

This type implements a scoped guard for SpinLock.

Synopsis

Declared in <bsls_spinlock.h>

class SpinLockGuard;

Member Functions

NameDescription
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.