File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -857,8 +857,10 @@ class CNode
857
857
// socket
858
858
std::atomic<ServiceFlags> nServices{NODE_NONE};
859
859
SOCKET hSocket GUARDED_BY (cs_hSocket);
860
- size_t nSendSize{0 }; // total size of all vSendMsg entries
861
- size_t nSendOffset{0 }; // offset inside the first vSendMsg already sent
860
+ /* * Total size of all vSendMsg entries */
861
+ size_t nSendSize GUARDED_BY (cs_vSend){0 };
862
+ /* * Offset inside the first vSendMsg already sent */
863
+ size_t nSendOffset GUARDED_BY (cs_vSend){0 };
862
864
uint64_t nSendBytes GUARDED_BY (cs_vSend){0 };
863
865
std::deque<std::vector<unsigned char >> vSendMsg GUARDED_BY (cs_vSend);
864
866
RecursiveMutex cs_vSend;
@@ -989,7 +991,7 @@ class CNode
989
991
Network ConnectedThroughNetwork () const ;
990
992
991
993
protected:
992
- mapMsgCmdSize mapSendBytesPerMsgCmd;
994
+ mapMsgCmdSize mapSendBytesPerMsgCmd GUARDED_BY (cs_vSend) ;
993
995
mapMsgCmdSize mapRecvBytesPerMsgCmd GUARDED_BY (cs_vRecv);
994
996
995
997
public:
You can’t perform that action at this time.
0 commit comments