summaryrefslogtreecommitdiff
path: root/src/fq.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-05-23 20:30:01 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-05-23 20:30:01 +0200
commit0f6f7276e32c01ccfe86fb76741a52ac6ffc87af (patch)
tree3f2cec589f6243742da7e79028633d35f8b362db /src/fq.hpp
parentacf0b0e515515e51ad32ba7a2d147ce703579478 (diff)
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 <sustrik@250bpm.com>
Diffstat (limited to 'src/fq.hpp')
-rw-r--r--src/fq.hpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/fq.hpp b/src/fq.hpp
index bbe1b59..106e978 100644
--- a/src/fq.hpp
+++ b/src/fq.hpp
@@ -35,18 +35,16 @@ namespace zmq
{
public:
- fq_t (class own_t *sink_);
+ fq_t ();
~fq_t ();
void attach (pipe_t *pipe_);
- void terminate ();
+ void activated (pipe_t *pipe_);
+ void terminated (pipe_t *pipe_);
int recv (msg_t *msg_, int flags_);
bool has_in ();
- void activated (pipe_t *pipe_);
- void terminated (pipe_t *pipe_);
-
private:
// Inbound pipes.
@@ -64,12 +62,6 @@ namespace zmq
// there are following parts still waiting in the current pipe.
bool more;
- // Object to send events to.
- class own_t *sink;
-
- // If true, termination process is already underway.
- bool terminating;
-
fq_t (const fq_t&);
const fq_t &operator = (const fq_t&);
};