Create a guard that unlocks lock for the guard's lifetime.
Declared in <bslmt_readlockguard.h>
explicit
ReadLockGuardUnlock(T* lock);
Create a scoped guard that conditionally manages the specified lock (if non-null) and invokes lock->unlock(). Supplying a null lock has no effect. The behavior is undefined unless lock (if non-null) is locked by this thread. Note that lock must remain valid throughout the lifetime of this guard, or until release is called.
| Name | Description |
|---|---|
| lock | lock object to unlock; may be null |