Acquires mu exclusively if it is non‐null.

Synopsis

Declared in <absl/synchronization/mutex.h>

explicit
MutexLockMaybe(Mutex* mu);

Parameters

Name

Description

mu

The mutex to lock, or null for a no‐op.

Created with MrDocs