diff options
author | Nate Goergen <nate.goergen.gitlab1@mile10.com> | 2015-03-19 12:12:10 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2015-04-02 15:38:58 -0700 |
commit | 1a773a2411fa18455d2e995060fa2e9f42afc007 (patch) | |
tree | 836bd3c93b5036f3e495c6132f874a05906b9cff /gr-blocks/lib/ctrlport_probe2_i_impl.h | |
parent | 91459f9b06500ac16f555819ef3c20f2029483c8 (diff) |
controlport: cleaner, more robust interface for buffer gets.
Diffstat (limited to 'gr-blocks/lib/ctrlport_probe2_i_impl.h')
-rw-r--r-- | gr-blocks/lib/ctrlport_probe2_i_impl.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gr-blocks/lib/ctrlport_probe2_i_impl.h b/gr-blocks/lib/ctrlport_probe2_i_impl.h index 06493ac23a..3a976550eb 100644 --- a/gr-blocks/lib/ctrlport_probe2_i_impl.h +++ b/gr-blocks/lib/ctrlport_probe2_i_impl.h @@ -25,7 +25,7 @@ #include <gnuradio/blocks/ctrlport_probe2_i.h> #include <gnuradio/rpcregisterhelpers.h> -#include <boost/thread/shared_mutex.hpp> +#include <gnuradio/rpcbufferedget.h> namespace gr { namespace blocks { @@ -37,11 +37,9 @@ namespace gr { std::string d_desc; size_t d_len; unsigned int d_disp_mask; - boost::shared_mutex mutex_buffer; - mutable boost::mutex mutex_notify; - boost::condition_variable condition_buffer_ready; std::vector<int> d_buffer; + rpcbufferedget< std::vector<int> > buffered_get; public: ctrlport_probe2_i_impl(const std::string &id, const std::string &desc, @@ -66,4 +64,3 @@ namespace gr { } /* namespace gr */ #endif /* INCLUDED_CTRLPORT_PROBE2_I_IMPL_H */ - |