summaryrefslogtreecommitdiff
path: root/src/own.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-09-18 07:37:36 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-09-18 07:37:36 +0200
commit4c6d07d3668558d910c9b1d19d52ccdeacc90574 (patch)
tree3530c8b03e9b475165d8bb3cf2eb425f5bfdd45e /src/own.hpp
parentfb6ce536d96c82e8f4378a87a5d59aefcc57a96d (diff)
single term ack counting mechanism for every socket (no separate mechanisms for fq_t and lb_t)
Diffstat (limited to 'src/own.hpp')
-rw-r--r--src/own.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/own.hpp b/src/own.hpp
index b65177e..6b6f7bf 100644
--- a/src/own.hpp
+++ b/src/own.hpp
@@ -52,6 +52,14 @@ namespace zmq
// before the command is delivered.
void inc_seqnum ();
+ // Use following two functions to wait for arbitrary events before
+ // terminating. Just add number of events to wait for using
+ // register_tem_acks functions. When event occurs, call
+ // remove_term_ack. When number of pending acks reaches zero
+ // object will be deallocated.
+ void register_term_acks (int count_);
+ void unregister_term_ack ();
+
protected:
// Launch the supplied object and become its owner.
@@ -77,14 +85,6 @@ namespace zmq
// steps to the beginning of the termination process.
void process_term ();
- // Use following two functions to wait for arbitrary events before
- // terminating. Just add number of events to wait for using
- // register_tem_acks functions. When event occurs, call
- // remove_term_ack. When number of pending acks reaches zero
- // object will be deallocated.
- void register_term_acks (int count_);
- void unregister_term_ack ();
-
// A place to hook in when phyicallal destruction of the object
// is to be delayed.
virtual void process_destroy ();