discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] unittest with USRP not finishing


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] unittest with USRP not finishing
Date: Wed, 6 Feb 2013 09:09:24 -0500

On Wed, Feb 6, 2013 at 8:37 AM, maiconkist <address@hidden> 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
address@hidden
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


reply via email to

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