[#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(0x7f2e18922170), requires&lowbar;capability(0x7f2e18c084d0), requires&lowbar;capability(0x7f2e324d18a0), requires&lowbar;capability(0x7f2e4024b650), requires&lowbar;capability(0x7f2e36f4bd30), requires&lowbar;capability(0x7f2e2a2f6cb0), requires&lowbar;capability(0x7f2e37b1eda0), requires&lowbar;capability(0x7f2e33baebf0), requires&lowbar;capability(0x7f2e3b4cc690), requires&lowbar;capability(0x7f2e2207e3c0), requires&lowbar;capability(0x7f2e25f2b140), requires&lowbar;capability(0x7f2e42e78e90), requires&lowbar;capability(0x7f2e3ba1f910), requires&lowbar;capability(0x7f2e31c3eca0), requires&lowbar;capability(0x7f2e2259aa10), requires&lowbar;capability(0x7f2e3235c9f0), requires&lowbar;capability(0x7f2e3622d960), requires&lowbar;capability(0x7f2e23dcf000), requires&lowbar;capability(0x7f2e1c6fef00), requires&lowbar;capability(0x7f2e21ec11f0), requires&lowbar;capability(0x7f2e30437730), requires&lowbar;capability(0x7f2e36beb570), requires&lowbar;capability(0x7f2e33a44790), requires&lowbar;capability(0x7f2e225323f0), requires&lowbar;capability(0x7f2e1bc21870), requires&lowbar;capability(0x7f2e29c62f30), requires&lowbar;capability(0x7f2e19a53870), requires&lowbar;capability(0x7f2e146cda40), requires&lowbar;capability(0x7f2e41a64e30), requires&lowbar;capability(0x7f2e36f44310), requires&lowbar;capability(0x7f2e1be59320), requires&lowbar;capability(0x7f2e30e3c6b0), requires&lowbar;capability(0x7f2e29ccab70), requires&lowbar;capability(0x7f2e3aa87aa0), requires&lowbar;capability(0x7f2e43f1af00), requires&lowbar;capability(0x7f2e30e127c0), requires&lowbar;capability(0x7f2e23209280), requires&lowbar;capability(0x7f2e362d5cd0), requires&lowbar;capability(0x7f2e14196cf0), requires&lowbar;capability(0x7f2e357b1610), requires&lowbar;capability(0x7f2e1889a230), requires&lowbar;capability(0x7f2e248fccf0), requires&lowbar;capability(0x7f2e28578740), requires&lowbar;capability(0x7f2e3ad52f70), requires&lowbar;capability(0x7f2e33763930), requires&lowbar;capability(0x7f2e370e9170), requires&lowbar;capability(0x7f2e30c03610), requires&lowbar;capability(0x7f2e2a6a9e30), requires&lowbar;capability(0x7f2e08005880), requires&lowbar;capability(0x7f2e3ab45df0), requires&lowbar;capability(0x7f2e26d27b60), requires&lowbar;capability(0x7f2e1d2c1360), requires&lowbar;capability(0x7f2e0845d240), requires&lowbar;capability(0x7f2e1c593f50), requires&lowbar;capability(0x7f2e38a08be0), requires&lowbar;capability(0x7f2e1405b560), requires&lowbar;capability(0x7f2e19759f30), requires&lowbar;capability(0x7f2e2ab5a780), requires&lowbar;capability(0x7f2e42e7be80), requires&lowbar;capability(0x7f2e2417c160), requires&lowbar;capability(0x7f2e3a6bfef0), requires&lowbar;capability(0x7f2e11f105e0), requires&lowbar;capability(0x7f2e144657d0), requires&lowbar;capability(0x7f2e19a725b0), requires&lowbar;capability(0x7f2e297b3670), requires&lowbar;capability(0x7f2e31e411d0), requires&lowbar;capability(0x7f2e395d9f30), requires&lowbar;capability(0x7f2e403bffe0), requires&lowbar;capability(0x7f2e310385b0), requires&lowbar;capability(0x7f2e2222bc50), requires&lowbar;capability(0x7f2e1b671d50), requires&lowbar;capability(0x7f2e33020120), requires&lowbar;capability(0x7f2e36fdd2d0), requires&lowbar;capability(0x7f2e38403ac0), requires&lowbar;capability(0x7f2e23921f50), requires&lowbar;capability(0x7f2e28cdcf00), requires&lowbar;capability(0x7f2e31260390), requires&lowbar;capability(0x7f2e35be2780), requires&lowbar;capability(0x7f2e1e8a3420)&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]#
