Assert that the given mutex is held by the current thread.

Synopsis

Declared in <sync.h>

template<typename MutexType>
void
AssertLockHeldInternal(
    char const* pszName,
    char const* pszFile,
    int nLine,
    MutexType* cs);

Parameters

Name

Description

pszName

Name of the mutex.

pszFile

Source file of the caller.

nLine

Source line of the caller.

cs

Mutex expected to be held.

Created with MrDocs