aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-04-23 15:30:46 +0200
committerVasil Dimov <vd@FreeBSD.org>2022-01-28 06:41:10 +0100
commitb68349164827f14c472201cad54c4e19a3321261 (patch)
treeedf515dfd9cb40040672e999445ad5359ba295ad /src/net.h
parentc41a1162ac4da437c5d755e8fe2bf636bed22b0f (diff)
downloadbitcoin-b68349164827f14c472201cad54c4e19a3321261.tar.xz
scripted-diff: rename CNode::cs_hSocket to CNode::m_sock_mutex
-BEGIN VERIFY SCRIPT- sed -i -e 's/cs_hSocket/m_sock_mutex/g' $(git grep -l cs_hSocket) -END VERIFY SCRIPT-
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.h b/src/net.h
index e0e0e930bf..be564dbade 100644
--- a/src/net.h
+++ b/src/net.h
@@ -411,7 +411,7 @@ public:
* poll(2)-ing it for activity.
* @see https://github.com/bitcoin/bitcoin/issues/21744 for details.
*/
- std::shared_ptr<Sock> m_sock GUARDED_BY(cs_hSocket);
+ std::shared_ptr<Sock> m_sock GUARDED_BY(m_sock_mutex);
/** Total size of all vSendMsg entries */
size_t nSendSize GUARDED_BY(cs_vSend){0};
@@ -420,7 +420,7 @@ public:
uint64_t nSendBytes GUARDED_BY(cs_vSend){0};
std::deque<std::vector<unsigned char>> vSendMsg GUARDED_BY(cs_vSend);
Mutex cs_vSend;
- Mutex cs_hSocket;
+ Mutex m_sock_mutex;
Mutex cs_vRecv;
RecursiveMutex cs_vProcessMsg;