diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2015-01-12 14:24:48 -0800 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2015-01-12 14:24:48 -0800 |
commit | 3a443cfe307c4f2c5f03806146d4ad1664faa288 (patch) | |
tree | 294dd854a825dbed9e209720d1bbfa01ed41381a /gr-zeromq/lib/pull_msg_source_impl.h | |
parent | 7b77431d3a4971ac62c6e71a813151404c1ae5e3 (diff) |
zeromq: cleanup and made pull_msg_source derive from gr::block
Diffstat (limited to 'gr-zeromq/lib/pull_msg_source_impl.h')
-rw-r--r-- | gr-zeromq/lib/pull_msg_source_impl.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gr-zeromq/lib/pull_msg_source_impl.h b/gr-zeromq/lib/pull_msg_source_impl.h index 9ff89ef154..6d8791d613 100644 --- a/gr-zeromq/lib/pull_msg_source_impl.h +++ b/gr-zeromq/lib/pull_msg_source_impl.h @@ -35,19 +35,18 @@ namespace gr { int d_timeout; // microseconds, -1 is blocking zmq::context_t *d_context; zmq::socket_t *d_socket; + boost::thread *d_thread; + void readloop(); - boost::thread *d_thread; public: + bool d_finished; + pull_msg_source_impl(char *address, int timeout); ~pull_msg_source_impl(); bool start(); bool stop(); - bool d_finished; - int work(int noutput_items, - gr_vector_const_void_star &input_items, - gr_vector_void_star &output_items); }; } // namespace zeromq |