Skip to content

Commit 5e7e4c9

Browse files
committed
refactor: replace RecursiveMutex g_maplocalhost_mutex with Mutex
1 parent a7da140 commit 5e7e4c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static const uint64_t RANDOMIZER_ID_ADDRCACHE = 0x1cf2e4ddd306dda9ULL; // SHA256
112112
//
113113
bool fDiscover = true;
114114
bool fListen = true;
115-
RecursiveMutex g_maplocalhost_mutex;
115+
Mutex g_maplocalhost_mutex;
116116
std::map<CNetAddr, LocalServiceInfo> mapLocalHost GUARDED_BY(g_maplocalhost_mutex);
117117
static bool vfLimited[NET_MAX] GUARDED_BY(g_maplocalhost_mutex) = {};
118118
std::string strSubVersion;

src/net.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ struct LocalServiceInfo {
230230
uint16_t nPort;
231231
};
232232

233-
extern RecursiveMutex g_maplocalhost_mutex;
233+
extern Mutex g_maplocalhost_mutex;
234234
extern std::map<CNetAddr, LocalServiceInfo> mapLocalHost GUARDED_BY(g_maplocalhost_mutex);
235235

236236
extern const std::string NET_MESSAGE_COMMAND_OTHER;

0 commit comments

Comments
 (0)