mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
fix: don't use non-existent PrintLockContention
in SharedEnter
`PrintLockContention` hasn't existed since dash#6046
This commit is contained in:
parent
f331cbe8c8
commit
a9cfbd1048
@ -256,13 +256,10 @@ private:
|
|||||||
{
|
{
|
||||||
EnterCritical(pszName, pszFile, nLine, Base::mutex());
|
EnterCritical(pszName, pszFile, nLine, Base::mutex());
|
||||||
#ifdef DEBUG_LOCKCONTENTION
|
#ifdef DEBUG_LOCKCONTENTION
|
||||||
if (!Base::try_lock()) {
|
if (Base::try_lock()) return;
|
||||||
PrintLockContention(pszName, pszFile, nLine);
|
LOG_TIME_MICROS_WITH_CATEGORY(strprintf("lock contention %s, %s:%d", pszName, pszFile, nLine), BCLog::LOCK);
|
||||||
#endif
|
#endif
|
||||||
Base::lock();
|
Base::lock();
|
||||||
#ifdef DEBUG_LOCKCONTENTION
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TrySharedEnter(const char* pszName, const char* pszFile, int nLine)
|
bool TrySharedEnter(const char* pszName, const char* pszFile, int nLine)
|
||||||
|
Loading…
Reference in New Issue
Block a user