aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.h
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2016-12-27 17:13:04 -0500
committerCory Fields <cory-nospam-@coryfields.com>2017-01-03 17:56:20 -0500
commitd3d7056d2a562301b3770c4ede1dfc8ffb00cf4b (patch)
treebf1afce0daac6bf2e8b71a181e2bcdf8b27e655c /src/net_processing.h
parent0985052319263bd7ca9744af3504682b3ea8e21a (diff)
net: make net processing interruptible
Diffstat (limited to 'src/net_processing.h')
-rw-r--r--src/net_processing.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net_processing.h b/src/net_processing.h
index 130433cc7c..9e76cad505 100644
--- a/src/net_processing.h
+++ b/src/net_processing.h
@@ -39,13 +39,14 @@ bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats);
void Misbehaving(NodeId nodeid, int howmuch);
/** Process protocol messages received from a given node */
-bool ProcessMessages(CNode* pfrom, CConnman& connman);
+bool ProcessMessages(CNode* pfrom, CConnman& connman, std::atomic<bool>& interrupt);
/**
* Send queued protocol messages to be sent to a give node.
*
* @param[in] pto The node which we are sending messages to.
* @param[in] connman The connection manager for that node.
+ * @param[in] interrupt Interrupt condition for processing threads
*/
-bool SendMessages(CNode* pto, CConnman& connman);
+bool SendMessages(CNode* pto, CConnman& connman, std::atomic<bool>& interrupt);
#endif // BITCOIN_NET_PROCESSING_H