Create a proctor object that manages the specified lock. Invoke lock‐>lock().

Synopsis

Declared in <bsls_spinlock.h>

explicit
SpinLockGuard(SpinLock* lock);

Parameters

Name

Description

lock

spin lock to manage and acquire

Created with MrDocs