aboutsummaryrefslogtreecommitdiff
path: root/src/sync.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2021-01-26 15:57:28 +0800
committerfanquake <fanquake@gmail.com>2021-01-26 15:57:28 +0800
commitf827e151a2ce96e14aadb9e7d25045fe0a8afbd2 (patch)
treef6391977492cd2472aec79c6538e37d499fe1d3c /src/sync.cpp
parent16ae3368f2a20cffa312b6ee9b724c1e302ca5fb (diff)
downloadbitcoin-f827e151a2ce96e14aadb9e7d25045fe0a8afbd2.tar.xz
refactor: remove straggling boost::mutex usage
After the merge of #18710, the linter is warning: ```bash A new Boost dependency in the form of "boost/thread/mutex.hpp" appears to have been introduced: src/sync.cpp:#include <boost/thread/mutex.hpp> src/test/sync_tests.cpp:#include <boost/thread/mutex.hpp> ^---- failure generated from test/lint/lint-includes.sh ``` the interim #19337 was merged, which introduced more `boost::mutex` usage. Given we no longer use `boost::mutex`, just remove the double lock test and remaining includes.
Diffstat (limited to 'src/sync.cpp')
-rw-r--r--src/sync.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/sync.cpp b/src/sync.cpp
index acfbe8fe29..a2b62c2286 100644
--- a/src/sync.cpp
+++ b/src/sync.cpp
@@ -13,8 +13,6 @@
#include <util/strencodings.h>
#include <util/threadnames.h>
-#include <boost/thread/mutex.hpp>
-
#include <map>
#include <mutex>
#include <set>
@@ -224,7 +222,6 @@ template void EnterCritical(const char*, const char*, int, Mutex*, bool);
template void EnterCritical(const char*, const char*, int, RecursiveMutex*, bool);
template void EnterCritical(const char*, const char*, int, std::mutex*, bool);
template void EnterCritical(const char*, const char*, int, std::recursive_mutex*, bool);
-template void EnterCritical(const char*, const char*, int, boost::mutex*, bool);
void CheckLastCritical(void* cs, std::string& lockname, const char* guardname, const char* file, int line)
{