summaryrefslogtreecommitdiff
path: root/src/pub.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pub.hpp')
-rw-r--r--src/pub.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pub.hpp b/src/pub.hpp
index a81edfe..edc9b53 100644
--- a/src/pub.hpp
+++ b/src/pub.hpp
@@ -37,8 +37,6 @@ namespace zmq
// Implementations of virtual functions from socket_base_t.
void xattach_pipes (class reader_t *inpipe_, class writer_t *outpipe_,
const blob_t &peer_identity_);
- void xterm_pipes ();
- bool xhas_pipes ();
int xsend (zmq_msg_t *msg_, int flags_);
bool xhas_out ();
@@ -48,6 +46,9 @@ namespace zmq
private:
+ // Hook into the termination process.
+ void process_term ();
+
// Write the message to the pipe. Make the pipe inactive if writing
// fails. In such a case false is returned.
bool write (class writer_t *pipe_, zmq_msg_t *msg_);
@@ -60,6 +61,9 @@ namespace zmq
// beginning of the pipes array.
pipes_t::size_type active;
+ // True if termination process is already underway.
+ bool terminating;
+
pub_t (const pub_t&);
void operator = (const pub_t&);
};