[#CheckLastCritical]
= CheckLastCritical
:mrdocs:

Verify that the most recently entered critical section matches the given mutex&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
CheckLastCritical(
    void* cs,
    std::string& lockname,
    char const* guardname,
    char const* file,
    int line);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cs*
| Mutex expected to be the last one entered&period;
| *lockname*
| Receives the recorded name of that lock&period;
| *guardname*
| Name of the guard variable being constructed&period;
| *file*
| Source file of the caller&period;
| *line*
| Source line of the caller&period;
|===


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