absl::Mutex::AssertHeld

Requires that the mutex be held exclusively (write mode) by this thread.

Synopsis

Declared in <absl/synchronization/mutex.h>

void
AssertHeld() const;

Description

Intended only as a debugging aid; it doesn't guarantee correctness.