summaryrefslogtreecommitdiff
path: root/include/gnuradio
diff options
context:
space:
mode:
authorJosh Blum2012-09-11 20:33:58 -0700
committerJosh Blum2012-09-11 20:33:58 -0700
commita822c2f3063030d9af172c4d3798885f3281d44e (patch)
treebe2687bd3812b159031ff9a7b115b612c8f36bdd /include/gnuradio
parent42682f091b9c80b54c3b95b27bb496acc46ce294 (diff)
downloadsandhi-a822c2f3063030d9af172c4d3798885f3281d44e.tar.gz
sandhi-a822c2f3063030d9af172c4d3798885f3281d44e.tar.bz2
sandhi-a822c2f3063030d9af172c4d3798885f3281d44e.zip
added wait w/ timeout to top block/executor
Diffstat (limited to 'include/gnuradio')
-rw-r--r--include/gnuradio/top_block.hpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/gnuradio/top_block.hpp b/include/gnuradio/top_block.hpp
index 1a4b4b2..a0a057f 100644
--- a/include/gnuradio/top_block.hpp
+++ b/include/gnuradio/top_block.hpp
@@ -67,8 +67,22 @@ struct GRAS_API TopBlock : HierBlock
//! Stop a flow graph execution (does not block)
void stop(void);
- //! Wait for threads to exit after stop()
+ /*!
+ * Wait for threads to exit after stop() or run().
+ * This is a blocking call and will not return until
+ * all blocks in the topology have been marked done.
+ */
virtual void wait(void);
+
+ /*!
+ * Wait for threads to exit after stop() or run().
+ * This is call will block until timeout or done.
+ *
+ * \param timeout the timeout in seconds
+ * \return true of execution completed
+ */
+ virtual bool wait(const double timeout);
+
};
} //namespace gnuradio