From 0f6f7276e32c01ccfe86fb76741a52ac6ffc87af Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Mon, 23 May 2011 20:30:01 +0200 Subject: Move the pipe termination code to socket_base_t So far, the pipe termination code was spread among socket type classes, fair queuer, load balancer, etc. This patch moves all the associated logic to a single place. Signed-off-by: Martin Sustrik --- src/own.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/own.hpp') diff --git a/src/own.hpp b/src/own.hpp index 5023a30..0902f73 100644 --- a/src/own.hpp +++ b/src/own.hpp @@ -76,6 +76,9 @@ namespace zmq // called more than once. void terminate (); + // Returns true if the object is in process of termination. + bool is_terminating (); + // Derived object destroys own_t. There's no point in allowing // others to invoke the destructor. At the same time, it has to be // virtual so that generic own_t deallocation mechanism destroys -- cgit v1.2.3