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

Require negative capability on a Mutex before locking it and pass it through&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1892a6b0), lock&lowbar;returned(cs), requires&lowbar;capability(0x7f2e18c10a10), requires&lowbar;capability(0x7f2e324d9de0), requires&lowbar;capability(0x7f2e40253b90), requires&lowbar;capability(0x7f2e36f54270), requires&lowbar;capability(0x7f2e2a2ff1f0), requires&lowbar;capability(0x7f2e37b272e0), requires&lowbar;capability(0x7f2e301235d0), requires&lowbar;capability(0x7f2e3b4d4bd0), requires&lowbar;capability(0x7f2e22086900), requires&lowbar;capability(0x7f2e25f33680), requires&lowbar;capability(0x7f2e42e813d0), requires&lowbar;capability(0x7f2e3ba27e50), requires&lowbar;capability(0x7f2e31c471e0), requires&lowbar;capability(0x7f2e225a2f50), requires&lowbar;capability(0x7f2e32364f30), requires&lowbar;capability(0x7f2e36235ea0), requires&lowbar;capability(0x7f2e23dd7540), requires&lowbar;capability(0x7f2e1c707440), requires&lowbar;capability(0x7f2e21ec9730), requires&lowbar;capability(0x7f2e3043fc70), requires&lowbar;capability(0x7f2e36bf3ab0), requires&lowbar;capability(0x7f2e33a4ccd0), requires&lowbar;capability(0x7f2e2253a930), requires&lowbar;capability(0x7f2e1bc29db0), requires&lowbar;capability(0x7f2e29c6b470), requires&lowbar;capability(0x7f2e19a5bdb0), requires&lowbar;capability(0x7f2e146d5f80), requires&lowbar;capability(0x7f2e41a6d370), requires&lowbar;capability(0x7f2e36f4c850), requires&lowbar;capability(0x7f2e1be61860), requires&lowbar;capability(0x7f2e30e44bf0), requires&lowbar;capability(0x7f2e29cd30b0), requires&lowbar;capability(0x7f2e3aa8ffe0), requires&lowbar;capability(0x7f2e43f23440), requires&lowbar;capability(0x7f2e30e1ad00), requires&lowbar;capability(0x7f2e232117c0), requires&lowbar;capability(0x7f2e362de210), requires&lowbar;capability(0x7f2e1419f230), requires&lowbar;capability(0x7f2e357b9b50), requires&lowbar;capability(0x7f2e188a2770), requires&lowbar;capability(0x7f2e24905230), requires&lowbar;capability(0x7f2e28580c80), requires&lowbar;capability(0x7f2e3ad5b4b0), requires&lowbar;capability(0x7f2e3376be70), requires&lowbar;capability(0x7f2e370f16b0), requires&lowbar;capability(0x7f2e30c0bb50), requires&lowbar;capability(0x7f2e2a6b2370), requires&lowbar;capability(0x7f2e0800ddc0), requires&lowbar;capability(0x7f2e3ab4e330), requires&lowbar;capability(0x7f2e26d300a0), requires&lowbar;capability(0x7f2e1d2c98a0), requires&lowbar;capability(0x7f2e08465780), requires&lowbar;capability(0x7f2e1c59c490), requires&lowbar;capability(0x7f2e38a11140), requires&lowbar;capability(0x7f2e14063aa0), requires&lowbar;capability(0x7f2e19762470), requires&lowbar;capability(0x7f2e2ab62cc0), requires&lowbar;capability(0x7f2e42e843c0), requires&lowbar;capability(0x7f2e241846a0), requires&lowbar;capability(0x7f2e3a6c8430), requires&lowbar;capability(0x7f2e11f18b20), requires&lowbar;capability(0x7f2e1446dd10), requires&lowbar;capability(0x7f2e19a7aaf0), requires&lowbar;capability(0x7f2e297bbbb0), requires&lowbar;capability(0x7f2e31e49710), requires&lowbar;capability(0x7f2e395e2470), requires&lowbar;capability(0x7f2e403c8520), requires&lowbar;capability(0x7f2e31040af0), requires&lowbar;capability(0x7f2e22234190), requires&lowbar;capability(0x7f2e1b67a290), requires&lowbar;capability(0x7f2e33028660), requires&lowbar;capability(0x7f2e36fe5810), requires&lowbar;capability(0x7f2e3840c000), requires&lowbar;capability(0x7f2e2392a490), requires&lowbar;capability(0x7f2e28ce5440), requires&lowbar;capability(0x7f2e312688d0), requires&lowbar;capability(0x7f2e35beacc0), requires&lowbar;capability(0x7f2e1e8ab960)&rsqb;&rsqb;
xref:Mutex.adoc[Mutex]*
MaybeCheckNotHeld(xref:Mutex.adoc[Mutex]* cs);
----

== Return Value

The same mutex pointer&period;

== Parameters

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


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