[#MaybeCheckNotHeld-01]
= 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(0x7f9500842ba8), lock&lowbar;returned(m), locks&lowbar;excluded(0x7f9525cc8488), locks&lowbar;excluded(0x7f950db73798), locks&lowbar;excluded(0x7f951f579cb8), locks&lowbar;excluded(0x7f950c18a308), locks&lowbar;excluded(0x7f950e1b5078), locks&lowbar;excluded(0x7f9522ff8748), locks&lowbar;excluded(0x7f951c784118), locks&lowbar;excluded(0x7f95141502d8), locks&lowbar;excluded(0x7f950a045e38), locks&lowbar;excluded(0x7f9502088f68), locks&lowbar;excluded(0x7f9515b2b248), locks&lowbar;excluded(0x7f9527a0ae78), locks&lowbar;excluded(0x7f951c796288), locks&lowbar;excluded(0x7f95220d7588), locks&lowbar;excluded(0x7f9503cc9198), locks&lowbar;excluded(0x7f9527b0d688), locks&lowbar;excluded(0x7f950db4de08), locks&lowbar;excluded(0x7f9525ef0388), locks&lowbar;excluded(0x7f9521a9b298), locks&lowbar;excluded(0x7f951f7c36b8), locks&lowbar;excluded(0x7f9527a71848), locks&lowbar;excluded(0x7f9500b1d208), locks&lowbar;excluded(0x7f950f392548), locks&lowbar;excluded(0x7f95034612e8), locks&lowbar;excluded(0x7f950833cb48), locks&lowbar;excluded(0x7f95039cf258), locks&lowbar;excluded(0x7f9513c17038), locks&lowbar;excluded(0x7f950fa3d7a8), locks&lowbar;excluded(0x7f94f895a078), locks&lowbar;excluded(0x7f951d594288), locks&lowbar;excluded(0x7f951715dde8), locks&lowbar;excluded(0x7f95088b3bc8), locks&lowbar;excluded(0x7f951e623e98), locks&lowbar;excluded(0x7f950f8a9548), locks&lowbar;excluded(0x7f94f0889808), locks&lowbar;excluded(0x7f950e103908), locks&lowbar;excluded(0x7f9527a52968), locks&lowbar;excluded(0x7f95104b3b38), locks&lowbar;excluded(0x7f950bbe54d8), locks&lowbar;excluded(0x7f9517b78008), locks&lowbar;excluded(0x7f951ea73c58), locks&lowbar;excluded(0x7f950a204538), locks&lowbar;excluded(0x7f9527c3d9b8), locks&lowbar;excluded(0x7f9513f8a3f8), locks&lowbar;excluded(0x7f9523f12818), locks&lowbar;excluded(0x7f9516a10c38), locks&lowbar;excluded(0x7f9503674378), locks&lowbar;excluded(0x7f9513c3ec58), locks&lowbar;excluded(0x7f9526267708), locks&lowbar;excluded(0x7f9523c303f8), locks&lowbar;excluded(0x7f951d2a4298), locks&lowbar;excluded(0x7f952678f2c8), locks&lowbar;excluded(0x7f9501660b38), locks&lowbar;excluded(0x7f95082c9248), locks&lowbar;excluded(0x7f9523c2b9f8), locks&lowbar;excluded(0x7f9509279f58), locks&lowbar;excluded(0x7f951c5aea38), locks&lowbar;excluded(0x7f950c2edb88), locks&lowbar;excluded(0x7f951250c128), locks&lowbar;excluded(0x7f9508141a08), locks&lowbar;excluded(0x7f95066ee1b8), locks&lowbar;excluded(0x7f9510f541f8), locks&lowbar;excluded(0x7f9501a16bf8), locks&lowbar;excluded(0x7f9508b81498), locks&lowbar;excluded(0x7f9521660a58), locks&lowbar;excluded(0x7f9517b0fcf8), locks&lowbar;excluded(0x7f9502e54ea8), locks&lowbar;excluded(0x7f950da86ba8), locks&lowbar;excluded(0x7f94fc854a18), locks&lowbar;excluded(0x7f94f8a893f8), locks&lowbar;excluded(0x7f951fe827f8), locks&lowbar;excluded(0x7f94f066e808), locks&lowbar;excluded(0x7f952503dd48), locks&lowbar;excluded(0x7f950697f968), locks&lowbar;excluded(0x7f9515b88578), locks&lowbar;excluded(0x7f95038520a8), locks&lowbar;excluded(0x7f9514951238), locks&lowbar;excluded(0x7f95157ba9e8)&rsqb;&rsqb;
MutexType*
MaybeCheckNotHeld(MutexType* m);
----

== Return Value

The same mutex pointer&period;

== Parameters

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


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