Split CNode::cs_vSend: message processing and message sending
commitd7c58ad514ee00db00589216166808258bc16b60
authorMatt Corallo <git@bluematt.me>
Sat, 24 Dec 2016 19:34:20 +0000 (24 14:34 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 13 Jan 2017 18:34:37 +0000 (13 10:34 -0800)
tree9ada9b97140cb50aa139dff17046beec63cd0788
parent8b66bf74e2a349e71eaa183af81fa63eaee76ad2
Split CNode::cs_vSend: message processing and message sending

cs_vSend is used for two purposes - to lock the datastructures used
to queue messages to place on the wire and to only call
SendMessages once at a time per-node. I believe SendMessages used
to access some of the vSendMsg stuff, but it doesn't anymore, so
these locks do not need to be on the same mutex, and also make
deadlocking much more likely.
src/net.cpp
src/net.h