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
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. |
Created with MrDocs