Register that a critical section is being entered, for lock-order checking.
Declared in <sync.h>
template<typename MutexType>
void
EnterCritical(
char const* pszName,
char const* pszFile,
int nLine,
MutexType* cs,
bool fTry = false);
| Name | Description |
|---|---|
| pszName | Name of the mutex. |
| pszFile | Source file where the lock is taken. |
| nLine | Source line where the lock is taken. |
| cs | Mutex being entered. |
| fTry | Whether this is a non-blocking try-lock. |