mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-19 09:53:47 +01:00
refactor: replace RecursiveMutex g_maplocalhost_mutex with Mutex
This commit is contained in:
parent
a7da1409bc
commit
5e7e4c9f6e
@ -112,7 +112,7 @@ static const uint64_t RANDOMIZER_ID_ADDRCACHE = 0x1cf2e4ddd306dda9ULL; // SHA256
|
||||
//
|
||||
bool fDiscover = true;
|
||||
bool fListen = true;
|
||||
RecursiveMutex g_maplocalhost_mutex;
|
||||
Mutex g_maplocalhost_mutex;
|
||||
std::map<CNetAddr, LocalServiceInfo> mapLocalHost GUARDED_BY(g_maplocalhost_mutex);
|
||||
static bool vfLimited[NET_MAX] GUARDED_BY(g_maplocalhost_mutex) = {};
|
||||
std::string strSubVersion;
|
||||
|
@ -230,7 +230,7 @@ struct LocalServiceInfo {
|
||||
uint16_t nPort;
|
||||
};
|
||||
|
||||
extern RecursiveMutex g_maplocalhost_mutex;
|
||||
extern Mutex g_maplocalhost_mutex;
|
||||
extern std::map<CNetAddr, LocalServiceInfo> mapLocalHost GUARDED_BY(g_maplocalhost_mutex);
|
||||
|
||||
extern const std::string NET_MESSAGE_COMMAND_OTHER;
|
||||
|
Loading…
Reference in New Issue
Block a user