[#EnterCritical]
= EnterCritical
:mrdocs:

Register that a critical section is being entered, for lock&hyphen;order checking&period;

== Synopsis

Declared in `&lt;sync&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename MutexType&gt;
void
EnterCritical(
    char const* pszName,
    char const* pszFile,
    int nLine,
    MutexType* cs,
    bool fTry = false);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pszName*
| Name of the mutex&period;
| *pszFile*
| Source file where the lock is taken&period;
| *nLine*
| Source line where the lock is taken&period;
| *cs*
| Mutex being entered&period;
| *fTry*
| Whether this is a non&hyphen;blocking try&hyphen;lock&period;
|===


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