Changeset View
Changeset View
Standalone View
Standalone View
src/sync.cpp
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "sync.h" | #include "sync.h" | ||||
#include "util.h" | #include "logging.h" | ||||
#include "utilstrencodings.h" | #include "utilstrencodings.h" | ||||
#include <cstdio> | #include <cstdio> | ||||
#include <map> | |||||
#include <memory> | |||||
#include <set> | #include <set> | ||||
#ifdef DEBUG_LOCKCONTENTION | #ifdef DEBUG_LOCKCONTENTION | ||||
void PrintLockContention(const char *pszName, const char *pszFile, int nLine) { | void PrintLockContention(const char *pszName, const char *pszFile, int nLine) { | ||||
LogPrintf("LOCKCONTENTION: %s\n", pszName); | LogPrintf("LOCKCONTENTION: %s\n", pszName); | ||||
LogPrintf("Locker: %s:%d\n", pszFile, nLine); | LogPrintf("Locker: %s:%d\n", pszFile, nLine); | ||||
} | } | ||||
#endif /* DEBUG_LOCKCONTENTION */ | #endif /* DEBUG_LOCKCONTENTION */ | ||||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |