diff options
author | Josh Blum | 2012-10-04 20:01:53 -0700 |
---|---|---|
committer | Josh Blum | 2012-10-04 20:01:53 -0700 |
commit | 3b26ff66074621c1fd1dc26b616ec1583c2fb024 (patch) | |
tree | 3cbe010f6f2cbd20eafa020e8525d11bb56b6c5a /include | |
parent | 80ad97851736b0ebaba0347480e8cbcadd2f4ada (diff) | |
download | sandhi-3b26ff66074621c1fd1dc26b616ec1583c2fb024.tar.gz sandhi-3b26ff66074621c1fd1dc26b616ec1583c2fb024.tar.bz2 sandhi-3b26ff66074621c1fd1dc26b616ec1583c2fb024.zip |
updated to latest subprojects, got compiling
due to the return 0 fix, interruptible threads are now optional, and by defualt off
added empty hooks for max/min buffer stuff so its compiling...
Diffstat (limited to 'include')
-rw-r--r-- | include/gnuradio/block.hpp | 9 | ||||
-rw-r--r-- | include/gnuradio/gr_block.h | 12 | ||||
-rw-r--r-- | include/gnuradio/gr_top_block.h | 4 |
3 files changed, 25 insertions, 0 deletions
diff --git a/include/gnuradio/block.hpp b/include/gnuradio/block.hpp index 87dda04..6120ae2 100644 --- a/include/gnuradio/block.hpp +++ b/include/gnuradio/block.hpp @@ -211,6 +211,15 @@ struct GRAS_API Block : Element //! scheduler calls when the topology is updated, can be overloaded virtual bool check_topology(int ninputs, int noutputs); + /*! + * Set if the work call should be interruptible by stop(). + * Some work implementations block with the expectation of + * getting a boost thread interrupt in a blocking call. + * Set set_interruptible_work(true) if this is the case. + * By default, work implementations are not interruptible. + */ + void set_interruptible_work(const bool enb); + /******************************************************************* * routines related to affinity and allocation ******************************************************************/ diff --git a/include/gnuradio/gr_block.h b/include/gnuradio/gr_block.h index fc87ccf..645ff04 100644 --- a/include/gnuradio/gr_block.h +++ b/include/gnuradio/gr_block.h @@ -104,6 +104,18 @@ struct GRAS_API gr_block : gnuradio::Block void set_decimation(const size_t); + ///////////// TODO ////////////////////// + int max_noutput_items(){return 0;} + void set_max_noutput_items(int){} + void unset_max_noutput_items(){} + bool is_set_max_noutput_items(){return false;} + void set_max_output_buffer(long){} + void set_max_output_buffer(int, long){} + long max_output_buffer(size_t){return 0;} + void set_min_output_buffer(long){} + void set_min_output_buffer(int, long){} + long min_output_buffer(size_t){return 0;} + }; typedef boost::shared_ptr<gr_block> gr_block_sptr; diff --git a/include/gnuradio/gr_top_block.h b/include/gnuradio/gr_top_block.h index 65680f2..eb1a9aa 100644 --- a/include/gnuradio/gr_top_block.h +++ b/include/gnuradio/gr_top_block.h @@ -37,6 +37,10 @@ struct GRAS_API gr_top_block : gnuradio::TopBlock this->update(); } + ///////////// TODO ////////////////////// + int max_noutput_items(){return 0;} + void set_max_noutput_items(int){} + }; typedef boost::shared_ptr<gr_top_block> gr_top_block_sptr; |