MaybeCheckNotHeld overloads
Synopses
Declared in <sync.h>
Require negative capability on a Mutex before locking it and pass it through.
Mutex&
MaybeCheckNotHeld(Mutex& cs);
Require negative capability on a Mutex before locking it and pass it through.
Mutex*
MaybeCheckNotHeld(Mutex* cs);
Check a GlobalMutex or RecursiveMutex is not held in scope and pass it through.
template<typename MutexType>
MutexType&
MaybeCheckNotHeld(MutexType& m);
Check a GlobalMutex or RecursiveMutex is not held in scope and pass it through.
template<typename MutexType>
MutexType*
MaybeCheckNotHeld(MutexType* m);
Return Value
-
The same mutex reference.
-
The same mutex pointer.
Parameters
Name |
Description |
cs |
Mutex about to be locked. |
m |
Mutex about to be locked. |
Created with MrDocs