[#AssertLockHeldInternal]
= AssertLockHeldInternal
:mrdocs:

Assert that the given mutex is 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;requires&lowbar;capability(0x7f9500839c90), requires&lowbar;capability(0x7f9525cbf570), requires&lowbar;capability(0x7f950db6a880), requires&lowbar;capability(0x7f951f570da0), requires&lowbar;capability(0x7f950c1813f0), requires&lowbar;capability(0x7f950e1ac160), requires&lowbar;capability(0x7f9522fef830), requires&lowbar;capability(0x7f9500ef5590), requires&lowbar;capability(0x7f95141473c0), requires&lowbar;capability(0x7f950a03cf20), requires&lowbar;capability(0x7f9502080050), requires&lowbar;capability(0x7f9515b22330), requires&lowbar;capability(0x7f9527a01f60), requires&lowbar;capability(0x7f951c78d370), requires&lowbar;capability(0x7f95220ce670), requires&lowbar;capability(0x7f9503cc01f0), requires&lowbar;capability(0x7f9527b04770), requires&lowbar;capability(0x7f950db44ef0), requires&lowbar;capability(0x7f9525ee7470), requires&lowbar;capability(0x7f9521a92380), requires&lowbar;capability(0x7f951f7ba7a0), requires&lowbar;capability(0x7f9527a68930), requires&lowbar;capability(0x7f9500b142f0), requires&lowbar;capability(0x7f950f389630), requires&lowbar;capability(0x7f95034583d0), requires&lowbar;capability(0x7f9508333c30), requires&lowbar;capability(0x7f95039c6340), requires&lowbar;capability(0x7f9513c0e120), requires&lowbar;capability(0x7f950fa34890), requires&lowbar;capability(0x7f94f8951160), requires&lowbar;capability(0x7f951d58b370), requires&lowbar;capability(0x7f9517154ed0), requires&lowbar;capability(0x7f95088aacb0), requires&lowbar;capability(0x7f951e61af80), requires&lowbar;capability(0x7f950f8a0630), requires&lowbar;capability(0x7f94f08808f0), requires&lowbar;capability(0x7f950e0fa9f0), requires&lowbar;capability(0x7f9527a49a50), requires&lowbar;capability(0x7f95104aac20), requires&lowbar;capability(0x7f950bbdc5c0), requires&lowbar;capability(0x7f9517b6f0f0), requires&lowbar;capability(0x7f951ea6ad40), requires&lowbar;capability(0x7f950a1fb620), requires&lowbar;capability(0x7f9527c34aa0), requires&lowbar;capability(0x7f9513f814e0), requires&lowbar;capability(0x7f9523f09900), requires&lowbar;capability(0x7f9516a07d20), requires&lowbar;capability(0x7f950366b460), requires&lowbar;capability(0x7f9513c35d40), requires&lowbar;capability(0x7f952625e7f0), requires&lowbar;capability(0x7f9523c274e0), requires&lowbar;capability(0x7f951d29b380), requires&lowbar;capability(0x7f95267863b0), requires&lowbar;capability(0x7f9501657c20), requires&lowbar;capability(0x7f9525ee1550), requires&lowbar;capability(0x7f9523c22ae0), requires&lowbar;capability(0x7f9509271040), requires&lowbar;capability(0x7f951c5a5b20), requires&lowbar;capability(0x7f950c2e4c70), requires&lowbar;capability(0x7f9512503210), requires&lowbar;capability(0x7f9508138af0), requires&lowbar;capability(0x7f95066e52a0), requires&lowbar;capability(0x7f9510f4b2e0), requires&lowbar;capability(0x7f9501a0dce0), requires&lowbar;capability(0x7f9508b78580), requires&lowbar;capability(0x7f9521657b40), requires&lowbar;capability(0x7f9517b06de0), requires&lowbar;capability(0x7f9502e4bf90), requires&lowbar;capability(0x7f950da7dc90), requires&lowbar;capability(0x7f94fc84bb00), requires&lowbar;capability(0x7f94f8a804e0), requires&lowbar;capability(0x7f951fe798e0), requires&lowbar;capability(0x7f94f06658f0), requires&lowbar;capability(0x7f9525034e30), requires&lowbar;capability(0x7f9506976a50), requires&lowbar;capability(0x7f9515b7f660), requires&lowbar;capability(0x7f9503849190), requires&lowbar;capability(0x7f9514948320), requires&lowbar;capability(0x7f95157b1ad0)&rsqb;&rsqb;
void
AssertLockHeldInternal(
    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 to be held&period;
|===


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