diff options
Diffstat (limited to 'gnuradio-core/src/lib')
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_hier_block2.h | 4 | ||||
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_top_block.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_hier_block2.h b/gnuradio-core/src/lib/runtime/gr_hier_block2.h index 01cecfaf6..ec72bf337 100644 --- a/gnuradio-core/src/lib/runtime/gr_hier_block2.h +++ b/gnuradio-core/src/lib/runtime/gr_hier_block2.h @@ -43,6 +43,10 @@ struct GR_CORE_API gr_hier_block2 : gras::HierBlock void set_input_signature(gr_io_signature_sptr sig); void set_output_signature(gr_io_signature_sptr sig); + inline void lock(void){} + + inline void unlock(void){this->commit();} + gr_io_signature_sptr _in_sig, _out_sig; }; diff --git a/gnuradio-core/src/lib/runtime/gr_top_block.h b/gnuradio-core/src/lib/runtime/gr_top_block.h index 0126e9215..59dfe3b30 100644 --- a/gnuradio-core/src/lib/runtime/gr_top_block.h +++ b/gnuradio-core/src/lib/runtime/gr_top_block.h @@ -44,6 +44,10 @@ struct GR_CORE_API gr_top_block : gras::TopBlock virtual void wait(void); + inline void lock(void){} + + inline void unlock(void){this->commit();} + }; typedef boost::shared_ptr<gr_top_block> gr_top_block_sptr; |