On Wed, Feb 6, 2013 at 8:37 AM, maiconkist <[email protected]> wrote:
> Resolved. > > Its necessary to call gr.top_block::wait() method before the "stop()". > Anybody know why this is necessary? > > > > -- > View this message in context: > http://gnuradio.4.n7.nabble.com/unittest-with-USRP-not-finishing-tp39439p39441.html > Sent from the GnuRadio mailing list archive at Nabble.com. > > _______________________________________________ > Discuss-gnuradio mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > In the thread-per-block scheduler: void gr_scheduler_tpb::stop() { d_threads.interrupt_all(); } void gr_scheduler_tpb::wait() { d_threads.join_all(); } Tom
_______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
