MaybeCheckNotHeld

MaybeCheckNotHeld overloads

Synopses

Declared in <sync.h>

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

Mutex&
MaybeCheckNotHeld(Mutex& cs);
» more...

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

Mutex*
MaybeCheckNotHeld(Mutex* cs);
» more...

Check a GlobalMutex or RecursiveMutex is not held in scope and pass it through.

template<typename MutexType>
MutexType&
MaybeCheckNotHeld(MutexType& m);
» more...

Check a GlobalMutex or RecursiveMutex is not held in scope and pass it through.

template<typename MutexType>
MutexType*
MaybeCheckNotHeld(MutexType* m);
» more...

Return Value

  • The same mutex reference.
  • The same mutex pointer.

Parameters

NameDescription
csMutex about to be locked.
mMutex about to be locked.