Verify that the most recently entered critical section matches the given mutex.
Declared in <sync.h>
void
CheckLastCritical(
void* cs,
std::string& lockname,
char const* guardname,
char const* file,
int line);
| Name | Description |
|---|---|
| cs | Mutex expected to be the last one entered. |
| lockname | Receives the recorded name of that lock. |
| guardname | Name of the guard variable being constructed. |
| file | Source file of the caller. |
| line | Source line of the caller. |