Re: [Discuss-gnuradio] usrp2 dtor can throw !

2011-01-15 Thread Josh Blum
I dont think that this is an issue. Are you actually seeing exceptions thrown at deconstruction time? There is nothing that would cause the dtor to get interrupted AFAIK. The only way this would be an issue is when thread A calls interrupt() on thread B when B is blocking in the join_all call

Re: [Discuss-gnuradio] usrp2 dtor can throw !

2011-01-15 Thread Gaetano Mendola
On Sat, Jan 15, 2011 at 8:34 PM, Josh Blum j...@joshknows.com wrote: I dont think that this is an issue. Are you actually seeing exceptions thrown at deconstruction time? It is a very issue because it was for us and I digged this due to our application experiencing crash. There is nothing

[Discuss-gnuradio] usrp2 dtor can throw !

2011-01-14 Thread Gaetano Mendola
Hi all, the usrp2 destructor can throw an exeption due the fact that while destroying the implementation ( usrp2::impl::~impl() ) a stop_bg() is performed. The stop_bg implementation is: void usrp2::impl::stop_bg() { d_bg_running = false; d_bg_pending_cond.notify_one(); // FIXME: