aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorCory Fields <[email protected]>2016-12-31 02:05:28 -0500
committerCory Fields <[email protected]>2017-01-12 23:05:25 -0500
commit4d712e366ca7fffaf96394ef01c9246482c0d92e (patch)
treeaa61383f6bf692c4fda2f697ad6fba3e4c199913 /src/net.h
parentnet: rework the way that the messagehandler sleeps (diff)
downloaddiscoin-4d712e366ca7fffaf96394ef01c9246482c0d92e.tar.xz
discoin-4d712e366ca7fffaf96394ef01c9246482c0d92e.zip
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 4fc41bdda..21864e73d 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;