From 23d93526545c271b0eed2bd468681864c4213cce Mon Sep 17 00:00:00 2001 From: dergoegge Date: Tue, 14 Mar 2023 18:02:09 +0100 Subject: [PATCH] [net] Make CNode msg process queue members private Now that all access to the process queue members is handled by methods of `CNode` we can make these members private. --- src/net.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/net.h b/src/net.h index a67b2af3eb..04757d32de 100644 --- a/src/net.h +++ b/src/net.h @@ -376,10 +376,6 @@ public: Mutex m_sock_mutex; Mutex cs_vRecv; - RecursiveMutex cs_vProcessMsg; - std::list vProcessMsg GUARDED_BY(cs_vProcessMsg); - size_t nProcessQueueSize GUARDED_BY(cs_vProcessMsg){0}; - uint64_t nRecvBytes GUARDED_BY(cs_vRecv){0}; std::atomic m_last_send{0s}; @@ -619,6 +615,10 @@ private: std::list vRecvMsg; // Used only by SocketHandler thread + RecursiveMutex cs_vProcessMsg; + std::list vProcessMsg GUARDED_BY(cs_vProcessMsg); + size_t nProcessQueueSize GUARDED_BY(cs_vProcessMsg){0}; + // Our address, as reported by the peer CService addrLocal GUARDED_BY(m_addr_local_mutex); mutable Mutex m_addr_local_mutex;