From 4c6d07d3668558d910c9b1d19d52ccdeacc90574 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sat, 18 Sep 2010 07:37:36 +0200 Subject: single term ack counting mechanism for every socket (no separate mechanisms for fq_t and lb_t) --- src/own.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/own.hpp') 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 (); -- cgit v1.2.3