@@ -52,7 +52,8 @@ void EnterCritical(const char* pszName, const char* pszFile, int nLine, void* cs
52
52
void LeaveCritical ();
53
53
void CheckLastCritical (void * cs, std::string& lockname, const char * guardname, const char * file, int line);
54
54
std::string LocksHeld ();
55
- void AssertLockHeldInternal (const char * pszName, const char * pszFile, int nLine, void * cs) ASSERT_EXCLUSIVE_LOCK(cs);
55
+ template <typename MutexType>
56
+ void AssertLockHeldInternal (const char * pszName, const char * pszFile, int nLine, MutexType* cs) ASSERT_EXCLUSIVE_LOCK(cs);
56
57
void AssertLockNotHeldInternal (const char * pszName, const char * pszFile, int nLine, void * cs);
57
58
void DeleteLock (void * cs);
58
59
@@ -66,7 +67,8 @@ extern bool g_debug_lockorder_abort;
66
67
void static inline EnterCritical (const char * pszName, const char * pszFile, int nLine, void * cs, bool fTry = false ) {}
67
68
void static inline LeaveCritical () {}
68
69
void static inline CheckLastCritical (void * cs, std::string& lockname, const char * guardname, const char * file, int line) {}
69
- void static inline AssertLockHeldInternal (const char * pszName, const char * pszFile, int nLine, void * cs) ASSERT_EXCLUSIVE_LOCK(cs) {}
70
+ template <typename MutexType>
71
+ void static inline AssertLockHeldInternal (const char * pszName, const char * pszFile, int nLine, MutexType* cs) ASSERT_EXCLUSIVE_LOCK(cs) {}
70
72
void static inline AssertLockNotHeldInternal (const char * pszName, const char * pszFile, int nLine, void * cs) {}
71
73
void static inline DeleteLock (void * cs) {}
72
74
#endif
0 commit comments