diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-08-14 08:37:38 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-08-25 15:39:20 +0200 |
commit | 43e34d028115c43577713c0c3e1f0c33b0aac94a (patch) | |
tree | 05f1831e132a40a7f4a58d65b948786bee1571f1 /src/pgm_receiver.cpp | |
parent | 45f83d78a56f4b3a812c87fec03a75558445b2ab (diff) |
engine leak fixed; pgm compilation fixed
Diffstat (limited to 'src/pgm_receiver.cpp')
-rw-r--r-- | src/pgm_receiver.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/pgm_receiver.cpp b/src/pgm_receiver.cpp index 048c529..ff61b96 100644 --- a/src/pgm_receiver.cpp +++ b/src/pgm_receiver.cpp @@ -55,7 +55,7 @@ int zmq::pgm_receiver_t::init (bool udp_encapsulation_, const char *network_) return pgm_socket.init (udp_encapsulation_, network_); } -void zmq::pgm_receiver_t::plug (i_inout *inout_) +void zmq::pgm_receiver_t::plug (io_thread_t *io_thread_, i_inout *inout_) { // Retrieve PGM fds and start polling. int socket_fd; @@ -88,12 +88,18 @@ void zmq::pgm_receiver_t::unplug () inout = NULL; } -void zmq::pgm_receiver_t::revive () +void zmq::pgm_receiver_t::terminate () +{ + unplug (); + delete this; +} + +void zmq::pgm_receiver_t::activate_out () { zmq_assert (false); } -void zmq::pgm_receiver_t::resume_input () +void zmq::pgm_receiver_t::activate_in () { // It is possible that the most recently used decoder // processed the whole buffer but failed to write |