EnterCritical

Register that a critical section is being entered, for lock-order checking.

Synopsis

Declared in <sync.h>

template<typename MutexType>
void
EnterCritical(
    char const* pszName,
    char const* pszFile,
    int nLine,
    MutexType* cs,
    bool fTry = false);

Parameters

NameDescription
pszNameName of the mutex.
pszFileSource file where the lock is taken.
nLineSource line where the lock is taken.
csMutex being entered.
fTryWhether this is a non-blocking try-lock.