sync: unpublish LocksHeld() which is used only in sync.cpp

This commit is contained in:
Vasil Dimov 2023-02-16 14:33:57 +01:00
parent 3df37e0c78
commit 91d0888921
No known key found for this signature in database
GPG key ID: 54DF06F64B55CBBF
2 changed files with 1 additions and 2 deletions

View file

@ -246,7 +246,7 @@ void LeaveCritical()
pop_lock(); pop_lock();
} }
std::string LocksHeld() static std::string LocksHeld()
{ {
LockData& lockdata = GetLockData(); LockData& lockdata = GetLockData();
std::lock_guard<std::mutex> lock(lockdata.dd_mutex); std::lock_guard<std::mutex> lock(lockdata.dd_mutex);

View file

@ -57,7 +57,6 @@ template <typename MutexType>
void EnterCritical(const char* pszName, const char* pszFile, int nLine, MutexType* cs, bool fTry = false); void EnterCritical(const char* pszName, const char* pszFile, int nLine, MutexType* cs, bool fTry = false);
void LeaveCritical(); void LeaveCritical();
void CheckLastCritical(void* cs, std::string& lockname, const char* guardname, const char* file, int line); void CheckLastCritical(void* cs, std::string& lockname, const char* guardname, const char* file, int line);
std::string LocksHeld();
template <typename MutexType> template <typename MutexType>
void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, MutexType* cs) EXCLUSIVE_LOCKS_REQUIRED(cs); void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, MutexType* cs) EXCLUSIVE_LOCKS_REQUIRED(cs);
template <typename MutexType> template <typename MutexType>