Constructors
Synopses
Declared in <absl/synchronization/mutex.h>
Acquires mu exclusively if it is non‐null.
explicit
MutexLockMaybe(Mutex* mu);
Acquires mu exclusively once cond holds if it is non‐null.
explicit
MutexLockMaybe(
Mutex* mu,
Condition const& cond);
Parameters
Name |
Description |
mu |
The mutex to lock, or null for a no‐op. |
cond |
The condition to wait for before locking. |
Created with MrDocs