[#AssertLockNotHeldInternal]
= AssertLockNotHeldInternal
:mrdocs:

Assert that the given mutex is not held by the current thread&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(0x7f950083a300), locks&lowbar;excluded(0x7f9525cbfbe0), locks&lowbar;excluded(0x7f950db6aef0), locks&lowbar;excluded(0x7f951f571410), locks&lowbar;excluded(0x7f950c181a60), locks&lowbar;excluded(0x7f950e1ac7d0), locks&lowbar;excluded(0x7f9522fefea0), locks&lowbar;excluded(0x7f9500ef5c00), locks&lowbar;excluded(0x7f9514147a30), locks&lowbar;excluded(0x7f950a03d590), locks&lowbar;excluded(0x7f95020806c0), locks&lowbar;excluded(0x7f9515b229a0), locks&lowbar;excluded(0x7f9527a025d0), locks&lowbar;excluded(0x7f951c78d9e0), locks&lowbar;excluded(0x7f95220cece0), locks&lowbar;excluded(0x7f9503cc0860), locks&lowbar;excluded(0x7f9527b04de0), locks&lowbar;excluded(0x7f950db45560), locks&lowbar;excluded(0x7f9525ee7ae0), locks&lowbar;excluded(0x7f9521a929f0), locks&lowbar;excluded(0x7f951f7bae10), locks&lowbar;excluded(0x7f9527a68fa0), locks&lowbar;excluded(0x7f9500b14960), locks&lowbar;excluded(0x7f950f389ca0), locks&lowbar;excluded(0x7f9503458a40), locks&lowbar;excluded(0x7f95083342a0), locks&lowbar;excluded(0x7f95039c69b0), locks&lowbar;excluded(0x7f9513c0e790), locks&lowbar;excluded(0x7f950fa34f00), locks&lowbar;excluded(0x7f94f89517d0), locks&lowbar;excluded(0x7f951d58b9e0), locks&lowbar;excluded(0x7f9517155540), locks&lowbar;excluded(0x7f95088ab320), locks&lowbar;excluded(0x7f951e61b5f0), locks&lowbar;excluded(0x7f950f8a0ca0), locks&lowbar;excluded(0x7f94f0880f60), locks&lowbar;excluded(0x7f950e0fb060), locks&lowbar;excluded(0x7f9527a4a0c0), locks&lowbar;excluded(0x7f95104ab290), locks&lowbar;excluded(0x7f950bbdcc30), locks&lowbar;excluded(0x7f9517b6f760), locks&lowbar;excluded(0x7f951ea6b3b0), locks&lowbar;excluded(0x7f950a1fbc90), locks&lowbar;excluded(0x7f9527c35110), locks&lowbar;excluded(0x7f9513f81b50), locks&lowbar;excluded(0x7f9523f09f70), locks&lowbar;excluded(0x7f9516a08390), locks&lowbar;excluded(0x7f950366bad0), locks&lowbar;excluded(0x7f9513c363b0), locks&lowbar;excluded(0x7f952625ee60), locks&lowbar;excluded(0x7f9523c27b50), locks&lowbar;excluded(0x7f951d29b9f0), locks&lowbar;excluded(0x7f9526786a20), locks&lowbar;excluded(0x7f9501658290), locks&lowbar;excluded(0x7f9525ee1bc0), locks&lowbar;excluded(0x7f9523c23150), locks&lowbar;excluded(0x7f95092716b0), locks&lowbar;excluded(0x7f951c5a6190), locks&lowbar;excluded(0x7f950c2e52e0), locks&lowbar;excluded(0x7f9512503880), locks&lowbar;excluded(0x7f9508139160), locks&lowbar;excluded(0x7f95066e5910), locks&lowbar;excluded(0x7f9510f4b950), locks&lowbar;excluded(0x7f9501a0e350), locks&lowbar;excluded(0x7f9508b78bf0), locks&lowbar;excluded(0x7f95216581b0), locks&lowbar;excluded(0x7f9517b07450), locks&lowbar;excluded(0x7f9502e4c600), locks&lowbar;excluded(0x7f950da7e300), locks&lowbar;excluded(0x7f94fc84c170), locks&lowbar;excluded(0x7f94f8a80b50), locks&lowbar;excluded(0x7f951fe79f50), locks&lowbar;excluded(0x7f94f0665f60), locks&lowbar;excluded(0x7f95250354a0), locks&lowbar;excluded(0x7f95069770c0), locks&lowbar;excluded(0x7f9515b7fcd0), locks&lowbar;excluded(0x7f9503849800), locks&lowbar;excluded(0x7f9514948990), locks&lowbar;excluded(0x7f95157b2140)&rsqb;&rsqb;
void
AssertLockNotHeldInternal(
    char const* pszName,
    char const* pszFile,
    int nLine,
    MutexType* cs);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pszName*
| Name of the mutex&period;
| *pszFile*
| Source file of the caller&period;
| *nLine*
| Source line of the caller&period;
| *cs*
| Mutex expected not to be held&period;
|===


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