From 10b7f835854f46ac390fdb6954d312a6b0ba30e9 Mon Sep 17 00:00:00 2001 From: Andrej Rode <mail@andrejro.de> Date: Thu, 13 Apr 2017 23:38:12 -0700 Subject: runtime: add barrier to synchronize block startup --- gnuradio-runtime/lib/tpb_thread_body.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gnuradio-runtime/lib/tpb_thread_body.h') diff --git a/gnuradio-runtime/lib/tpb_thread_body.h b/gnuradio-runtime/lib/tpb_thread_body.h index 9859b125dd..c500582cf3 100644 --- a/gnuradio-runtime/lib/tpb_thread_body.h +++ b/gnuradio-runtime/lib/tpb_thread_body.h @@ -24,6 +24,7 @@ #include <gnuradio/api.h> #include <gnuradio/block.h> #include <gnuradio/block_detail.h> +#include <gnuradio/thread/thread.h> #include "block_executor.h" namespace gr { @@ -40,7 +41,7 @@ namespace gr { block_executor d_exec; public: - tpb_thread_body(block_sptr block, int max_noutput_items=100000); + tpb_thread_body(block_sptr block, thread::barrier_sptr start_sync, int max_noutput_items=100000); ~tpb_thread_body(); }; -- cgit v1.2.3