[#MaybeCheckNotHeld-0b]
= MaybeCheckNotHeld
:mrdocs:

Check a GlobalMutex or RecursiveMutex is not held in scope and pass it through&period;

== Synopsis

Declared in `&lt;sync&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename MutexType&gt;
&lsqb;&lsqb;locks&lowbar;excluded(0x7f95008426b8), lock&lowbar;returned(m), locks&lowbar;excluded(0x7f9525cc7f98), locks&lowbar;excluded(0x7f950db732a8), locks&lowbar;excluded(0x7f951f5797c8), locks&lowbar;excluded(0x7f950c189e18), locks&lowbar;excluded(0x7f950e1b4b88), locks&lowbar;excluded(0x7f9522ff8258), locks&lowbar;excluded(0x7f951c783c28), locks&lowbar;excluded(0x7f951414fde8), locks&lowbar;excluded(0x7f950a045948), locks&lowbar;excluded(0x7f9502088a78), locks&lowbar;excluded(0x7f9515b2ad58), locks&lowbar;excluded(0x7f9527a0a988), locks&lowbar;excluded(0x7f951c795d98), locks&lowbar;excluded(0x7f95220d7098), locks&lowbar;excluded(0x7f9503cc8ca8), locks&lowbar;excluded(0x7f9527b0d198), locks&lowbar;excluded(0x7f950db4d918), locks&lowbar;excluded(0x7f9525eefe98), locks&lowbar;excluded(0x7f9521a9ada8), locks&lowbar;excluded(0x7f951f7c31c8), locks&lowbar;excluded(0x7f9527a71358), locks&lowbar;excluded(0x7f9500b1cd18), locks&lowbar;excluded(0x7f950f392058), locks&lowbar;excluded(0x7f9503460df8), locks&lowbar;excluded(0x7f950833c658), locks&lowbar;excluded(0x7f95039ced68), locks&lowbar;excluded(0x7f9513c16b48), locks&lowbar;excluded(0x7f950fa3d2b8), locks&lowbar;excluded(0x7f94f8959b88), locks&lowbar;excluded(0x7f951d593d98), locks&lowbar;excluded(0x7f951715d8f8), locks&lowbar;excluded(0x7f95088b36d8), locks&lowbar;excluded(0x7f951e6239a8), locks&lowbar;excluded(0x7f950f8a9058), locks&lowbar;excluded(0x7f94f0889318), locks&lowbar;excluded(0x7f950e103418), locks&lowbar;excluded(0x7f9527a52478), locks&lowbar;excluded(0x7f95104b3648), locks&lowbar;excluded(0x7f950bbe4fe8), locks&lowbar;excluded(0x7f9517b77b18), locks&lowbar;excluded(0x7f951ea73768), locks&lowbar;excluded(0x7f950a204048), locks&lowbar;excluded(0x7f9527c3d4c8), locks&lowbar;excluded(0x7f9513f89f08), locks&lowbar;excluded(0x7f9523f12328), locks&lowbar;excluded(0x7f9516a10748), locks&lowbar;excluded(0x7f9503673e88), locks&lowbar;excluded(0x7f9513c3e768), locks&lowbar;excluded(0x7f9526267218), locks&lowbar;excluded(0x7f9523c2ff08), locks&lowbar;excluded(0x7f951d2a3da8), locks&lowbar;excluded(0x7f952678edd8), locks&lowbar;excluded(0x7f9501660648), locks&lowbar;excluded(0x7f95082c8d58), locks&lowbar;excluded(0x7f9523c2b508), locks&lowbar;excluded(0x7f9509279a68), locks&lowbar;excluded(0x7f951c5ae548), locks&lowbar;excluded(0x7f950c2ed698), locks&lowbar;excluded(0x7f951250bc38), locks&lowbar;excluded(0x7f9508141518), locks&lowbar;excluded(0x7f95066edcc8), locks&lowbar;excluded(0x7f9510f53d08), locks&lowbar;excluded(0x7f9501a16708), locks&lowbar;excluded(0x7f9508b80fa8), locks&lowbar;excluded(0x7f9521660568), locks&lowbar;excluded(0x7f9517b0f808), locks&lowbar;excluded(0x7f9502e549b8), locks&lowbar;excluded(0x7f950da866b8), locks&lowbar;excluded(0x7f94fc854528), locks&lowbar;excluded(0x7f94f8a88f08), locks&lowbar;excluded(0x7f951fe82308), locks&lowbar;excluded(0x7f94f066e318), locks&lowbar;excluded(0x7f952503d858), locks&lowbar;excluded(0x7f950697f478), locks&lowbar;excluded(0x7f9515b88088), locks&lowbar;excluded(0x7f9503851bb8), locks&lowbar;excluded(0x7f9514950d48), locks&lowbar;excluded(0x7f95157ba4f8)&rsqb;&rsqb;
MutexType&
MaybeCheckNotHeld(MutexType& m);
----

== Return Value

The same mutex reference&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *m*
| Mutex about to be locked&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
