summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/top_block_impl.h
diff options
context:
space:
mode:
authorJiří Pinkava <j-pi@seznam.cz>2015-04-09 08:55:04 +0200
committerJohnathan Corgan <johnathan@corganlabs.com>2016-06-25 09:47:40 -0700
commita99f8ac8cc9a15ab608081c10a7733fce125e276 (patch)
tree86c4d7b5fb53039a95d0e2f146b20d5b52cf2c6a /gnuradio-runtime/lib/top_block_impl.h
parent0e18622160a33c10d5853fc3e3d0ee4ebaa41829 (diff)
runtime: fix state handling in top_block
d_state is intended to track running state of top block. * initial state is IDLE * set state to RUNNING when start() is called * set state to IDLE when stop() is called * set state to IDLE when all work is done (reqires call of wait()) * unlock() resume/start execution only if state is RUNNING
Diffstat (limited to 'gnuradio-runtime/lib/top_block_impl.h')
-rw-r--r--gnuradio-runtime/lib/top_block_impl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnuradio-runtime/lib/top_block_impl.h b/gnuradio-runtime/lib/top_block_impl.h
index 1ac5136ddf..de0a67b4c1 100644
--- a/gnuradio-runtime/lib/top_block_impl.h
+++ b/gnuradio-runtime/lib/top_block_impl.h
@@ -82,6 +82,7 @@ namespace gr {
gr::thread::mutex d_mutex; // protects d_state and d_lock_count
tb_state d_state;
int d_lock_count;
+ bool d_retry_wait;
boost::condition_variable d_lock_cond;
int d_max_noutput_items;