Quick Links:

bal | bbl | bdl | bsl

Static Public Member Functions

bslmt::MutexAssert_Imp Struct Reference

#include <bslmt_mutexassert.h>

List of all members.

Static Public Member Functions

static void assertIsLockedImpl (Mutex *mutex, const char *text, const char *file, int line)

Detailed Description

This struct provides a (component private) namespace for implementation functions of the assert macros defined in this component. This class should not be used directly in client code.

See Component bslmt_mutexassert


Member Function Documentation

static void bslmt::MutexAssert_Imp::assertIsLockedImpl ( Mutex mutex,
const char *  text,
const char *  file,
int  line 
) [static]

If the specified mutex is not locked, call bsls::Assert::invokeHandler with the specified text, file, and line, where text is text describing the assertion being performed, file is the name of the source file that called the macro, and line is the line number in the file where the macro was called. This function is intended to implement BSLMT_MUTEXASSERT_IS_LOCKED, BSLMT_MUTEXASSERT_IS_LOCKED_SAFE, and BSLMT_MUTEXASSERT_IS_LOCKED_OPT and should not otherwise be called directly.


The documentation for this struct was generated from the following file: