14 #ifndef assert // allow use of epicsAssert.h
32 void assertIdenticalMutex (
const T & )
const;
63 void show (
unsigned level )
const;
68 _pTargetMutex ( & mutexIn )
70 _pTargetMutex->lock ();
76 _pTargetMutex->unlock ();
81 const T & mutexToVerify )
const
83 assert ( _pTargetMutex == & mutexToVerify );
90 _pTargetMutex ( guardIn._pTargetMutex )
98 _guard._pTargetMutex = 0;
99 _pTargetMutex->unlock ();
105 _pTargetMutex->lock ();
106 _guard._pTargetMutex = _pTargetMutex;
109 inline void epicsMutexNOOP::lock () {}
110 inline bool epicsMutexNOOP::tryLock () {
return true; }
111 inline void epicsMutexNOOP::unlock () {}
112 inline void epicsMutexNOOP::show (
unsigned )
const {}
114 #endif // epicsGuardh
#define assert(exp)
Declare that a condition should be true.