File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 12
12
13
13
#include < cuckoocache.h>
14
14
15
- #include < boost/thread/lock_types.hpp>
16
- #include < boost/thread/shared_mutex.hpp>
15
+ #include < algorithm>
16
+ #include < mutex>
17
+ #include < shared_mutex>
18
+ #include < vector>
17
19
18
20
namespace {
19
21
/* *
@@ -29,7 +31,7 @@ class CSignatureCache
29
31
CSHA256 m_salted_hasher_schnorr;
30
32
typedef CuckooCache::cache<uint256, SignatureCacheHasher> map_type;
31
33
map_type setValid;
32
- boost ::shared_mutex cs_sigcache;
34
+ std ::shared_mutex cs_sigcache;
33
35
34
36
public:
35
37
CSignatureCache ()
@@ -64,13 +66,13 @@ class CSignatureCache
64
66
bool
65
67
Get (const uint256& entry, const bool erase)
66
68
{
67
- boost ::shared_lock<boost ::shared_mutex> lock (cs_sigcache);
69
+ std ::shared_lock<std ::shared_mutex> lock (cs_sigcache);
68
70
return setValid.contains (entry, erase);
69
71
}
70
72
71
73
void Set (const uint256& entry)
72
74
{
73
- boost ::unique_lock<boost ::shared_mutex> lock (cs_sigcache);
75
+ std ::unique_lock<std ::shared_mutex> lock (cs_sigcache);
74
76
setValid.insert (entry);
75
77
}
76
78
uint32_t setup_bytes (size_t n)
Original file line number Diff line number Diff line change @@ -67,8 +67,6 @@ EXPECTED_BOOST_INCLUDES=(
67
67
boost/signals2/optional_last_value.hpp
68
68
boost/signals2/signal.hpp
69
69
boost/test/unit_test.hpp
70
- boost/thread/lock_types.hpp
71
- boost/thread/shared_mutex.hpp
72
70
)
73
71
74
72
for BOOST_INCLUDE in $( git grep ' ^#include <boost/' -- " *.cpp" " *.h" | cut -f2 -d: | cut -f2 -d' <' | cut -f1 -d' >' | sort -u) ; do
You can’t perform that action at this time.
0 commit comments