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