[#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(0x7f2e1892ab98), lock&lowbar;returned(m), locks&lowbar;excluded(0x7f2e18c10ef8), locks&lowbar;excluded(0x7f2e324da2c8), locks&lowbar;excluded(0x7f2e40254078), locks&lowbar;excluded(0x7f2e36f54758), locks&lowbar;excluded(0x7f2e2a2ff6d8), locks&lowbar;excluded(0x7f2e37b277c8), locks&lowbar;excluded(0x7f2e30123ab8), locks&lowbar;excluded(0x7f2e3b4d50b8), locks&lowbar;excluded(0x7f2e22086de8), locks&lowbar;excluded(0x7f2e25f33b68), locks&lowbar;excluded(0x7f2e42e818b8), locks&lowbar;excluded(0x7f2e3ba28338), locks&lowbar;excluded(0x7f2e31c476c8), locks&lowbar;excluded(0x7f2e225a3438), locks&lowbar;excluded(0x7f2e2472ad18), locks&lowbar;excluded(0x7f2e36236388), locks&lowbar;excluded(0x7f2e23dd7a28), locks&lowbar;excluded(0x7f2e1c707928), locks&lowbar;excluded(0x7f2e21ec9c18), locks&lowbar;excluded(0x7f2e30440158), locks&lowbar;excluded(0x7f2e36bf3f98), locks&lowbar;excluded(0x7f2e33a4d1b8), locks&lowbar;excluded(0x7f2e2253ae18), locks&lowbar;excluded(0x7f2e1bc2a298), locks&lowbar;excluded(0x7f2e29c6b958), locks&lowbar;excluded(0x7f2e19a5c298), locks&lowbar;excluded(0x7f2e146d6468), locks&lowbar;excluded(0x7f2e41a6d858), locks&lowbar;excluded(0x7f2e36f4cd38), locks&lowbar;excluded(0x7f2e1be61d48), locks&lowbar;excluded(0x7f2e30e450d8), locks&lowbar;excluded(0x7f2e29cd3598), locks&lowbar;excluded(0x7f2e3aa904c8), locks&lowbar;excluded(0x7f2e43f23928), locks&lowbar;excluded(0x7f2e30e1b1e8), locks&lowbar;excluded(0x7f2e23211ca8), locks&lowbar;excluded(0x7f2e362de6f8), locks&lowbar;excluded(0x7f2e1419f718), locks&lowbar;excluded(0x7f2e357ba038), locks&lowbar;excluded(0x7f2e188a2c58), locks&lowbar;excluded(0x7f2e24905718), locks&lowbar;excluded(0x7f2e28581168), locks&lowbar;excluded(0x7f2e3ad5b998), locks&lowbar;excluded(0x7f2e3376c358), locks&lowbar;excluded(0x7f2e370f1b98), locks&lowbar;excluded(0x7f2e30c0c038), locks&lowbar;excluded(0x7f2e2a6b2858), locks&lowbar;excluded(0x7f2e0800e2a8), locks&lowbar;excluded(0x7f2e3ab4e818), locks&lowbar;excluded(0x7f2e26d30588), locks&lowbar;excluded(0x7f2e1d2c9d88), locks&lowbar;excluded(0x7f2e08465c68), locks&lowbar;excluded(0x7f2e1c59c978), locks&lowbar;excluded(0x7f2e38a11628), locks&lowbar;excluded(0x7f2e14063f88), locks&lowbar;excluded(0x7f2e19762958), locks&lowbar;excluded(0x7f2e2ab631a8), locks&lowbar;excluded(0x7f2e42e848a8), locks&lowbar;excluded(0x7f2e24184b88), locks&lowbar;excluded(0x7f2e3a6c8918), locks&lowbar;excluded(0x7f2e11f19008), locks&lowbar;excluded(0x7f2e1446e1f8), locks&lowbar;excluded(0x7f2e19a7afd8), locks&lowbar;excluded(0x7f2e297bc098), locks&lowbar;excluded(0x7f2e31e49bf8), locks&lowbar;excluded(0x7f2e395e2958), locks&lowbar;excluded(0x7f2e403c8a08), locks&lowbar;excluded(0x7f2e31040fd8), locks&lowbar;excluded(0x7f2e22234678), locks&lowbar;excluded(0x7f2e1b67a778), locks&lowbar;excluded(0x7f2e33028b48), locks&lowbar;excluded(0x7f2e36fe5cf8), locks&lowbar;excluded(0x7f2e3840c4e8), locks&lowbar;excluded(0x7f2e2392a978), locks&lowbar;excluded(0x7f2e28ce5928), locks&lowbar;excluded(0x7f2e31268db8), locks&lowbar;excluded(0x7f2e35beb1a8), locks&lowbar;excluded(0x7f2e1e8abe48)&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]#
