summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/runtime
diff options
context:
space:
mode:
authorJosh Blum2013-03-21 20:45:29 -0700
committerJosh Blum2013-03-21 20:45:29 -0700
commit78ccc760124713a56c9c85729ac40844a97f0550 (patch)
tree5d04389657a838f60ca4a083b44fb192d202a627 /gnuradio-core/src/lib/runtime
parentf93eb4d02bc0babae13ea0e677e4e36b58050cc3 (diff)
downloadgnuradio-78ccc760124713a56c9c85729ac40844a97f0550.tar.gz
gnuradio-78ccc760124713a56c9c85729ac40844a97f0550.tar.bz2
gnuradio-78ccc760124713a56c9c85729ac40844a97f0550.zip
gras: moved the lock/unlock here
Diffstat (limited to 'gnuradio-core/src/lib/runtime')
-rw-r--r--gnuradio-core/src/lib/runtime/gr_hier_block2.h4
-rw-r--r--gnuradio-core/src/lib/runtime/gr_top_block.h4
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;