aboutsummaryrefslogtreecommitdiff
path: root/src/sync.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-08-05 14:56:20 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-08-29 20:46:23 +0300
commit23d71d171e6e22ba5e4a909d597a54595b2a2c1f (patch)
treee69fa9955c211d355a947cea93a5b0020217a836 /src/sync.h
parent3ddc150857178bfb1c854c05bf9b526777876f56 (diff)
downloadbitcoin-23d71d171e6e22ba5e4a909d597a54595b2a2c1f.tar.xz
Do not hide compile-time thread safety warnings
Diffstat (limited to 'src/sync.h')
-rw-r--r--src/sync.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sync.h b/src/sync.h
index 05ff2ee8a9..c5f6893374 100644
--- a/src/sync.h
+++ b/src/sync.h
@@ -53,7 +53,7 @@ void LeaveCritical();
void CheckLastCritical(void* cs, std::string& lockname, const char* guardname, const char* file, int line);
std::string LocksHeld();
template <typename MutexType>
-void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, MutexType* cs) ASSERT_EXCLUSIVE_LOCK(cs);
+void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, MutexType* cs);
void AssertLockNotHeldInternal(const char* pszName, const char* pszFile, int nLine, void* cs);
void DeleteLock(void* cs);
bool LockStackEmpty();
@@ -69,7 +69,7 @@ inline void EnterCritical(const char* pszName, const char* pszFile, int nLine, v
inline void LeaveCritical() {}
inline void CheckLastCritical(void* cs, std::string& lockname, const char* guardname, const char* file, int line) {}
template <typename MutexType>
-inline void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, MutexType* cs) ASSERT_EXCLUSIVE_LOCK(cs) {}
+inline void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, MutexType* cs) {}
inline void AssertLockNotHeldInternal(const char* pszName, const char* pszFile, int nLine, void* cs) {}
inline void DeleteLock(void* cs) {}
inline bool LockStackEmpty() { return true; }