[#MaybeCheckNotHeld-0f] = MaybeCheckNotHeld :mrdocs: `MaybeCheckNotHeld` overloads == Synopses Declared in `<sync.h>` Require negative capability on a Mutex before locking it and pass it through. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:Mutex.adoc[Mutex]& xref:MaybeCheckNotHeld-07.adoc[MaybeCheckNotHeld](xref:Mutex.adoc[Mutex]& cs); ---- [.small]#xref:MaybeCheckNotHeld-07.adoc[_» more..._]# Require negative capability on a Mutex before locking it and pass it through. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:Mutex.adoc[Mutex]* xref:MaybeCheckNotHeld-0a.adoc[MaybeCheckNotHeld](xref:Mutex.adoc[Mutex]* cs); ---- [.small]#xref:MaybeCheckNotHeld-0a.adoc[_» more..._]# Check a GlobalMutex or RecursiveMutex is not held in scope and pass it through. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename MutexType> MutexType& xref:MaybeCheckNotHeld-0b.adoc[MaybeCheckNotHeld](MutexType& m); ---- [.small]#xref:MaybeCheckNotHeld-0b.adoc[_» more..._]# Check a GlobalMutex or RecursiveMutex is not held in scope and pass it through. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename MutexType> MutexType* xref:MaybeCheckNotHeld-01.adoc[MaybeCheckNotHeld](MutexType* m); ---- [.small]#xref:MaybeCheckNotHeld-01.adoc[_» more..._]# == Return Value * The same mutex reference. * The same mutex pointer. == Parameters [cols="1,4"] |=== | Name| Description | *cs* | Mutex about to be locked. | *m* | Mutex about to be locked. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#