StdMutex::CheckNotHeld

Assert (for the analyzer) that a mutex is not currently held and return it.

Synopsis

Declared in <util/stdmutex.h>

static
StdMutex&
CheckNotHeld(StdMutex& cs);

Return Value

The same mutex reference, so callers can lock it.

Parameters

NameDescription
csThe mutex that must not be held.