Skip to content

Commit 23d71d1

Browse files
committed
Do not hide compile-time thread safety warnings
1 parent 3ddc150 commit 23d71d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sync.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void LeaveCritical();
5353
void CheckLastCritical(void* cs, std::string& lockname, const char* guardname, const char* file, int line);
5454
std::string LocksHeld();
5555
template <typename MutexType>
56-
void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, MutexType* cs) ASSERT_EXCLUSIVE_LOCK(cs);
56+
void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, MutexType* cs);
5757
void AssertLockNotHeldInternal(const char* pszName, const char* pszFile, int nLine, void* cs);
5858
void DeleteLock(void* cs);
5959
bool LockStackEmpty();
@@ -69,7 +69,7 @@ inline void EnterCritical(const char* pszName, const char* pszFile, int nLine, v
6969
inline void LeaveCritical() {}
7070
inline void CheckLastCritical(void* cs, std::string& lockname, const char* guardname, const char* file, int line) {}
7171
template <typename MutexType>
72-
inline void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, MutexType* cs) ASSERT_EXCLUSIVE_LOCK(cs) {}
72+
inline void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, MutexType* cs) {}
7373
inline void AssertLockNotHeldInternal(const char* pszName, const char* pszFile, int nLine, void* cs) {}
7474
inline void DeleteLock(void* cs) {}
7575
inline bool LockStackEmpty() { return true; }

0 commit comments

Comments
 (0)