This PR is related to #19303 and gets rid of the following RecursiveMutex members in class CConnman
:
- for
cs_totalBytesRecv
, protectingnTotalBytesRecv
,std::atomic
is used instead (the member is only increment at one and read at another place, so this is sufficient) - for
m_addr_fetches_mutex
, protectingm_addr_fetches
, a regularMutex
is used instead (there is no chance that within one critical section, another one is called) - for
cs_vAddedNodes
, protectingvAddedNodes
, a regularMutex
is used instead (there is no chance that within one critical section, another one is called)
Additionally, the PR takes the chance to rename all node vector members (vNodes, vAddedNodes) and its corresponding mutexes (cs_vNodes, cs_vAddedNodes) to match the coding guidelines via a scripted-diff.