MaybeCheckNotHeld

Require negative capability on a Mutex before locking it and pass it through.

Synopsis

Declared in <sync.h>

Mutex*
MaybeCheckNotHeld(Mutex* cs);

Return Value

The same mutex pointer.

Parameters

NameDescription
csMutex about to be locked.