mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-04 12:12:58 +02: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 fDiscover = true;
|
||||||
bool fListen = true;
|
bool fListen = true;
|
||||||
RecursiveMutex g_maplocalhost_mutex;
|
Mutex g_maplocalhost_mutex;
|
||||||
std::map<CNetAddr, LocalServiceInfo> mapLocalHost GUARDED_BY(g_maplocalhost_mutex);
|
std::map<CNetAddr, LocalServiceInfo> mapLocalHost GUARDED_BY(g_maplocalhost_mutex);
|
||||||
static bool vfLimited[NET_MAX] GUARDED_BY(g_maplocalhost_mutex) = {};
|
static bool vfLimited[NET_MAX] GUARDED_BY(g_maplocalhost_mutex) = {};
|
||||||
std::string strSubVersion;
|
std::string strSubVersion;
|
||||||
|
@ -230,7 +230,7 @@ struct LocalServiceInfo {
|
|||||||
uint16_t nPort;
|
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 std::map<CNetAddr, LocalServiceInfo> mapLocalHost GUARDED_BY(g_maplocalhost_mutex);
|
||||||
|
|
||||||
extern const std::string NET_MESSAGE_COMMAND_OTHER;
|
extern const std::string NET_MESSAGE_COMMAND_OTHER;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user