CheckLastCritical

Verify that the most recently entered critical section matches the given mutex.

Synopsis

Declared in <sync.h>

void
CheckLastCritical(
    void* cs,
    std::string& lockname,
    char const* guardname,
    char const* file,
    int line);

Parameters

NameDescription
csMutex expected to be the last one entered.
locknameReceives the recorded name of that lock.
guardnameName of the guard variable being constructed.
fileSource file of the caller.
lineSource line of the caller.