Skip to content

Commit 417f95f

Browse files
author
MarcoFalke
committed
Merge bitcoin#19915: p2p, refactor: Use Mutex type for some mutexes in CNode class
0e51a35 refactor: Use Mutex type for some mutexes in CNode class (Hennadii Stepanov) Pull request description: No need the `RecursiveMutex` type for the `CNode::cs_vSend`, `CNode::cs_hSocket` and `CNode::cs_vRecv`. Related to bitcoin#19303. ACKs for top commit: jnewbery: utACK 0e51a35 MarcoFalke: review ACK 0e51a35 🔊 Tree-SHA512: 678ee5e3c15ad21a41cb86ec7179741bd505a138638fdc07f41d6d677c38fbf2208219bfc0509e3675e721fc8d8816e858070db7b87c5d72ad93aae81f7e1636
2 parents fafd725 + 0e51a35 commit 417f95f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/net.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -853,9 +853,9 @@ class CNode
853853
size_t nSendOffset{0}; // offset inside the first vSendMsg already sent
854854
uint64_t nSendBytes GUARDED_BY(cs_vSend){0};
855855
std::deque<std::vector<unsigned char>> vSendMsg GUARDED_BY(cs_vSend);
856-
RecursiveMutex cs_vSend;
857-
RecursiveMutex cs_hSocket;
858-
RecursiveMutex cs_vRecv;
856+
Mutex cs_vSend;
857+
Mutex cs_hSocket;
858+
Mutex cs_vRecv;
859859

860860
RecursiveMutex cs_vProcessMsg;
861861
std::list<CNetMessage> vProcessMsg GUARDED_BY(cs_vProcessMsg);

0 commit comments

Comments
 (0)