summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/scheduler.h
diff options
context:
space:
mode:
authorScott Torborg <storborg@gmail.com>2018-07-14 18:56:50 -0700
committerMartin Braun <martin.braun@ettus.com>2020-01-05 16:07:47 -0800
commitb0a26eeb4d8a4e0233f30e7137ec4c13391ca2b1 (patch)
tree625ceabd8dbd7f5e5061309ce6e7a3fe543f1181 /gnuradio-runtime/lib/scheduler.h
parent0c579fba83d55e2ee4acc8362a1be2beae86ad56 (diff)
Add a top_block parameter to control exception handling
This restores past behavior where the scheduler catches exceptions raised in block threads, allowing flowgraphs to continue running after the failure of an individual block. It also adds optional new behavior, selected by setting catch_exceptions=False to the top block, which causes exceptions to not be caught. In this mode of operation, a std::terminate handler can be installed to print a stack trace before the flowgraph exits.
Diffstat (limited to 'gnuradio-runtime/lib/scheduler.h')
-rw-r--r--gnuradio-runtime/lib/scheduler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-runtime/lib/scheduler.h b/gnuradio-runtime/lib/scheduler.h
index 8041771f3c..e76b2ac005 100644
--- a/gnuradio-runtime/lib/scheduler.h
+++ b/gnuradio-runtime/lib/scheduler.h
@@ -48,7 +48,7 @@ public:
* The scheduler will continue running until all blocks
* report that they are done or the stop method is called.
*/
- scheduler(flat_flowgraph_sptr ffg, int max_noutput_items);
+ scheduler(flat_flowgraph_sptr ffg, int max_noutput_items, bool catch_exceptions);
virtual ~scheduler();