Skip to content

Commit

Permalink
sync: unpublish LocksHeld() which is used only in sync.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
vasild committed Feb 17, 2023
1 parent 3df37e0 commit 91d0888
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ void LeaveCritical()
pop_lock();
}

std::string LocksHeld()
static std::string LocksHeld()
{
LockData& lockdata = GetLockData();
std::lock_guard<std::mutex> lock(lockdata.dd_mutex);
Expand Down
1 change: 0 additions & 1 deletion src/sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ template <typename MutexType>
void EnterCritical(const char* pszName, const char* pszFile, int nLine, MutexType* cs, bool fTry = false);
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) EXCLUSIVE_LOCKS_REQUIRED(cs);
template <typename MutexType>
Expand Down

0 comments on commit 91d0888

Please sign in to comment.