aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2016-12-31 02:05:28 -0500
committerCory Fields <cory-nospam-@coryfields.com>2017-01-12 23:05:25 -0500
commit4d712e366ca7fffaf96394ef01c9246482c0d92e (patch)
treeaa61383f6bf692c4fda2f697ad6fba3e4c199913 /src/net.h
parentc5a8b1b946b1ab0bb82bd4270b2a40f5731abcff (diff)
downloadbitcoin-4d712e366ca7fffaf96394ef01c9246482c0d92e.tar.xz
net: add a new message queue for the message processor
This separates the storage of messages from the net and queued messages for processing, allowing the locks to be split.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 4fc41bddac..21864e73d1 100644
--- a/src/net.h
+++ b/src/net.h
@@ -608,6 +608,9 @@ public:
std::deque<std::vector<unsigned char>> vSendMsg;
CCriticalSection cs_vSend;
+ CCriticalSection cs_vProcessMsg;
+ std::list<CNetMessage> vProcessMsg;
+
std::deque<CInv> vRecvGetData;
std::list<CNetMessage> vRecvMsg;
CCriticalSection cs_vRecvMsg;