Skip to content

Commit 91d0888

Browse files
committed
sync: unpublish LocksHeld() which is used only in sync.cpp
1 parent 3df37e0 commit 91d0888

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/sync.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ void LeaveCritical()
246246
pop_lock();
247247
}
248248

249-
std::string LocksHeld()
249+
static std::string LocksHeld()
250250
{
251251
LockData& lockdata = GetLockData();
252252
std::lock_guard<std::mutex> lock(lockdata.dd_mutex);

src/sync.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ template <typename MutexType>
5757
void EnterCritical(const char* pszName, const char* pszFile, int nLine, MutexType* cs, bool fTry = false);
5858
void LeaveCritical();
5959
void CheckLastCritical(void* cs, std::string& lockname, const char* guardname, const char* file, int line);
60-
std::string LocksHeld();
6160
template <typename MutexType>
6261
void AssertLockHeldInternal(const char* pszName, const char* pszFile, int nLine, MutexType* cs) EXCLUSIVE_LOCKS_REQUIRED(cs);
6362
template <typename MutexType>

0 commit comments

Comments
 (0)