[#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(0x7f2e189227e0), locks&lowbar;excluded(0x7f2e18c08b40), locks&lowbar;excluded(0x7f2e324d1f10), locks&lowbar;excluded(0x7f2e4024bcc0), locks&lowbar;excluded(0x7f2e36f4c3a0), locks&lowbar;excluded(0x7f2e2a2f7320), locks&lowbar;excluded(0x7f2e37b1f410), locks&lowbar;excluded(0x7f2e33baf260), locks&lowbar;excluded(0x7f2e3b4ccd00), locks&lowbar;excluded(0x7f2e2207ea30), locks&lowbar;excluded(0x7f2e25f2b7b0), locks&lowbar;excluded(0x7f2e42e79500), locks&lowbar;excluded(0x7f2e3ba1ff80), locks&lowbar;excluded(0x7f2e31c3f310), locks&lowbar;excluded(0x7f2e2259b080), locks&lowbar;excluded(0x7f2e3235d060), locks&lowbar;excluded(0x7f2e3622dfd0), locks&lowbar;excluded(0x7f2e23dcf670), locks&lowbar;excluded(0x7f2e1c6ff570), locks&lowbar;excluded(0x7f2e21ec1860), locks&lowbar;excluded(0x7f2e30437da0), locks&lowbar;excluded(0x7f2e36bebbe0), locks&lowbar;excluded(0x7f2e33a44e00), locks&lowbar;excluded(0x7f2e22532a60), locks&lowbar;excluded(0x7f2e1bc21ee0), locks&lowbar;excluded(0x7f2e29c635a0), locks&lowbar;excluded(0x7f2e19a53ee0), locks&lowbar;excluded(0x7f2e146ce0b0), locks&lowbar;excluded(0x7f2e41a654a0), locks&lowbar;excluded(0x7f2e36f44980), locks&lowbar;excluded(0x7f2e1be59990), locks&lowbar;excluded(0x7f2e30e3cd20), locks&lowbar;excluded(0x7f2e29ccb1e0), locks&lowbar;excluded(0x7f2e3aa88110), locks&lowbar;excluded(0x7f2e43f1b570), locks&lowbar;excluded(0x7f2e30e12e30), locks&lowbar;excluded(0x7f2e232098f0), locks&lowbar;excluded(0x7f2e362d6340), locks&lowbar;excluded(0x7f2e14197360), locks&lowbar;excluded(0x7f2e357b1c80), locks&lowbar;excluded(0x7f2e1889a8a0), locks&lowbar;excluded(0x7f2e248fd360), locks&lowbar;excluded(0x7f2e28578db0), locks&lowbar;excluded(0x7f2e3ad535e0), locks&lowbar;excluded(0x7f2e33763fa0), locks&lowbar;excluded(0x7f2e370e97e0), locks&lowbar;excluded(0x7f2e30c03c80), locks&lowbar;excluded(0x7f2e2a6aa4a0), locks&lowbar;excluded(0x7f2e08005ef0), locks&lowbar;excluded(0x7f2e3ab46460), locks&lowbar;excluded(0x7f2e26d281d0), locks&lowbar;excluded(0x7f2e1d2c19d0), locks&lowbar;excluded(0x7f2e0845d8b0), locks&lowbar;excluded(0x7f2e1c5945c0), locks&lowbar;excluded(0x7f2e38a09250), locks&lowbar;excluded(0x7f2e1405bbd0), locks&lowbar;excluded(0x7f2e1975a5a0), locks&lowbar;excluded(0x7f2e2ab5adf0), locks&lowbar;excluded(0x7f2e42e7c4f0), locks&lowbar;excluded(0x7f2e2417c7d0), locks&lowbar;excluded(0x7f2e3a6c0560), locks&lowbar;excluded(0x7f2e11f10c50), locks&lowbar;excluded(0x7f2e14465e40), locks&lowbar;excluded(0x7f2e19a72c20), locks&lowbar;excluded(0x7f2e297b3ce0), locks&lowbar;excluded(0x7f2e31e41840), locks&lowbar;excluded(0x7f2e395da5a0), locks&lowbar;excluded(0x7f2e403c0650), locks&lowbar;excluded(0x7f2e31038c20), locks&lowbar;excluded(0x7f2e2222c2c0), locks&lowbar;excluded(0x7f2e1b6723c0), locks&lowbar;excluded(0x7f2e33020790), locks&lowbar;excluded(0x7f2e36fdd940), locks&lowbar;excluded(0x7f2e38404130), locks&lowbar;excluded(0x7f2e239225c0), locks&lowbar;excluded(0x7f2e28cdd570), locks&lowbar;excluded(0x7f2e31260a00), locks&lowbar;excluded(0x7f2e35be2df0), locks&lowbar;excluded(0x7f2e1e8a3a90)&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]#
