mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-04 07:07:45 +01:00
sync: unpublish LocksHeld() which is used only in sync.cpp
This commit is contained in:
parent
3df37e0c78
commit
91d0888921
2 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue