8#ifndef INCLUDED_BSLMT_MUTEXASSERT
9#define INCLUDED_BSLMT_MUTEXASSERT
287#include <bslscm_version.h>
291#if defined(BSLS_ASSERT_IS_ACTIVE)
292 #define BSLMT_MUTEXASSERT_IS_LOCKED(mutex_p) do { \
293 BloombergLP::bslmt::MutexAssert_Imp::assertIsLockedImpl( \
295 "BSLMT_MUTEXASSERT_IS_LOCKED(" #mutex_p ")", \
297 __LINE__); } while (false)
299 #define BSLMT_MUTEXASSERT_IS_LOCKED(mutex_p) ((void) 0)
302#if defined(BSLS_ASSERT_SAFE_IS_ACTIVE)
303 #define BSLMT_MUTEXASSERT_IS_LOCKED_SAFE(mutex_p) do { \
304 BloombergLP::bslmt::MutexAssert_Imp::assertIsLockedImpl( \
306 "BSLMT_MUTEXASSERT_IS_LOCKED_SAFE(" #mutex_p ")", \
308 __LINE__); } while (false)
310 #define BSLMT_MUTEXASSERT_IS_LOCKED_SAFE(mutex_p) ((void) 0)
313#if defined(BSLS_ASSERT_OPT_IS_ACTIVE)
314 #define BSLMT_MUTEXASSERT_IS_LOCKED_OPT(mutex_p) do { \
315 BloombergLP::bslmt::MutexAssert_Imp::assertIsLockedImpl( \
317 "BSLMT_MUTEXASSERT_IS_LOCKED_OPT(" #mutex_p ")", \
319 __LINE__); } while (false)
321 #define BSLMT_MUTEXASSERT_IS_LOCKED_OPT(mutex_p) ((void) 0)
Definition bslmt_mutex.h:315
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bslmt_barrier.h:344
Definition bslmt_mutexassert.h:336
static void assertIsLockedImpl(Mutex *mutex, const char *text, const char *file, int line)