|
|
@ -87,9 +87,12 @@ typedef AnnotatedMixin<boost::mutex> CWaitableCriticalSection; |
|
|
|
#ifdef DEBUG_LOCKORDER |
|
|
|
#ifdef DEBUG_LOCKORDER |
|
|
|
void EnterCritical(const char* pszName, const char* pszFile, int nLine, void* cs, bool fTry = false); |
|
|
|
void EnterCritical(const char* pszName, const char* pszFile, int nLine, void* cs, bool fTry = false); |
|
|
|
void LeaveCritical(); |
|
|
|
void LeaveCritical(); |
|
|
|
|
|
|
|
std::string LocksHeld(); |
|
|
|
|
|
|
|
void AssertLockHeld(std::string strName); |
|
|
|
#else |
|
|
|
#else |
|
|
|
void static inline EnterCritical(const char* pszName, const char* pszFile, int nLine, void* cs, bool fTry = false) {} |
|
|
|
void static inline EnterCritical(const char* pszName, const char* pszFile, int nLine, void* cs, bool fTry = false) {} |
|
|
|
void static inline LeaveCritical() {} |
|
|
|
void static inline LeaveCritical() {} |
|
|
|
|
|
|
|
void static inline AssertLockHeld(std::string) {} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUG_LOCKCONTENTION |
|
|
|
#ifdef DEBUG_LOCKCONTENTION |
|
|
|