Create a guard that tries to acquire a lock on lock.
Synopsis
Declared in <bslmt_lockguard.h>
explicit
TryLockGuard(
T* lock,
int attempts = 1);
Parameters
Name |
Description |
lock |
lock object to try‐lock; may be null |
attempts |
maximum number of try‐lock attempts |
Created with MrDocs