commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10686 - gnuradio/trunk/gnuradio-core/src/lib/runtime


From: eb
Subject: [Commit-gnuradio] r10686 - gnuradio/trunk/gnuradio-core/src/lib/runtime
Date: Wed, 25 Mar 2009 16:29:21 -0600 (MDT)

Author: eb
Date: 2009-03-25 16:29:21 -0600 (Wed, 25 Mar 2009)
New Revision: 10686

Modified:
   gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_tpb_thread_body.cc
Log:
Add check for interruption to gr_tpb_thread_body to ensure that
threads stop quickly.



Modified: gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_tpb_thread_body.cc
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_tpb_thread_body.cc  
2009-03-25 22:00:45 UTC (rev 10685)
+++ gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_tpb_thread_body.cc  
2009-03-25 22:29:21 UTC (rev 10686)
@@ -23,6 +23,7 @@
 #endif
 #include <gr_tpb_thread_body.h>
 #include <iostream>
+#include <boost/thread.hpp>
 
 gr_tpb_thread_body::gr_tpb_thread_body(gr_block_sptr block)
   : d_exec(block)
@@ -33,6 +34,8 @@
   gr_block_executor::state s;
 
   while (1){
+    boost::this_thread::interruption_point();
+
     d->d_tpb.clear_changed();
     s = d_exec.run_one_iteration();
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]