[#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(0x7f2e1892b088), lock&lowbar;returned(m), locks&lowbar;excluded(0x7f2e18c113e8), locks&lowbar;excluded(0x7f2e324da7b8), locks&lowbar;excluded(0x7f2e40254568), locks&lowbar;excluded(0x7f2e36f54c48), locks&lowbar;excluded(0x7f2e2a2ffbc8), locks&lowbar;excluded(0x7f2e37b27cb8), locks&lowbar;excluded(0x7f2e30123fa8), locks&lowbar;excluded(0x7f2e3b4d55a8), locks&lowbar;excluded(0x7f2e220872d8), locks&lowbar;excluded(0x7f2e25f34058), locks&lowbar;excluded(0x7f2e42e81da8), locks&lowbar;excluded(0x7f2e3ba28828), locks&lowbar;excluded(0x7f2e31c47bb8), locks&lowbar;excluded(0x7f2e225a3928), locks&lowbar;excluded(0x7f2e2472b208), locks&lowbar;excluded(0x7f2e36236878), locks&lowbar;excluded(0x7f2e23dd7f18), locks&lowbar;excluded(0x7f2e1c707e18), locks&lowbar;excluded(0x7f2e21eca108), locks&lowbar;excluded(0x7f2e30440648), locks&lowbar;excluded(0x7f2e36bf4488), locks&lowbar;excluded(0x7f2e33a4d6a8), locks&lowbar;excluded(0x7f2e2253b308), locks&lowbar;excluded(0x7f2e1bc2a788), locks&lowbar;excluded(0x7f2e29c6be48), locks&lowbar;excluded(0x7f2e19a5c788), locks&lowbar;excluded(0x7f2e146d6958), locks&lowbar;excluded(0x7f2e41a6dd48), locks&lowbar;excluded(0x7f2e36f4d228), locks&lowbar;excluded(0x7f2e1be62238), locks&lowbar;excluded(0x7f2e30e455c8), locks&lowbar;excluded(0x7f2e29cd3a88), locks&lowbar;excluded(0x7f2e3aa909b8), locks&lowbar;excluded(0x7f2e43f23e18), locks&lowbar;excluded(0x7f2e30e1b6d8), locks&lowbar;excluded(0x7f2e23212198), locks&lowbar;excluded(0x7f2e362debe8), locks&lowbar;excluded(0x7f2e1419fc08), locks&lowbar;excluded(0x7f2e357ba528), locks&lowbar;excluded(0x7f2e188a3148), locks&lowbar;excluded(0x7f2e24905c08), locks&lowbar;excluded(0x7f2e28581658), locks&lowbar;excluded(0x7f2e3ad5be88), locks&lowbar;excluded(0x7f2e3376c848), locks&lowbar;excluded(0x7f2e370f2088), locks&lowbar;excluded(0x7f2e30c0c528), locks&lowbar;excluded(0x7f2e2a6b2d48), locks&lowbar;excluded(0x7f2e0800e798), locks&lowbar;excluded(0x7f2e3ab4ed08), locks&lowbar;excluded(0x7f2e26d30a78), locks&lowbar;excluded(0x7f2e1d2ca278), locks&lowbar;excluded(0x7f2e08466158), locks&lowbar;excluded(0x7f2e1c59ce68), locks&lowbar;excluded(0x7f2e38a11b18), locks&lowbar;excluded(0x7f2e14064478), locks&lowbar;excluded(0x7f2e19762e48), locks&lowbar;excluded(0x7f2e2ab63698), locks&lowbar;excluded(0x7f2e42e84d98), locks&lowbar;excluded(0x7f2e24185078), locks&lowbar;excluded(0x7f2e3a6c8e08), locks&lowbar;excluded(0x7f2e11f194f8), locks&lowbar;excluded(0x7f2e1446e6e8), locks&lowbar;excluded(0x7f2e19a7b4c8), locks&lowbar;excluded(0x7f2e297bc588), locks&lowbar;excluded(0x7f2e31e4a0e8), locks&lowbar;excluded(0x7f2e395e2e48), locks&lowbar;excluded(0x7f2e403c8ef8), locks&lowbar;excluded(0x7f2e310414c8), locks&lowbar;excluded(0x7f2e22234b68), locks&lowbar;excluded(0x7f2e1b67ac68), locks&lowbar;excluded(0x7f2e33029038), locks&lowbar;excluded(0x7f2e36fe61e8), locks&lowbar;excluded(0x7f2e3840c9d8), locks&lowbar;excluded(0x7f2e2392ae68), locks&lowbar;excluded(0x7f2e28ce5e18), locks&lowbar;excluded(0x7f2e312692a8), locks&lowbar;excluded(0x7f2e35beb698), locks&lowbar;excluded(0x7f2e1e8ac338)&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]#
