[#StdMutex-CheckNotHeld]
= xref:StdMutex.adoc[StdMutex]::CheckNotHeld
:relfileprefix: ../
:mrdocs:

Assert (for the analyzer) that a mutex is not currently held and return it&period;

== Synopsis

Declared in `&lt;util&sol;stdmutex&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f9522024018), lock&lowbar;returned(cs), requires&lowbar;capability(0x7f94f0a0a248)&rsqb;&rsqb;
static
xref:StdMutex.adoc[StdMutex]&
CheckNotHeld(xref:StdMutex.adoc[StdMutex]& cs);
----

== Return Value

The same mutex reference, so callers can lock it&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cs*
| The mutex that must not be held&period;
|===


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