Re: [Discuss-gnuradio] Stream_Selector (grextras) on Windows

2013-01-12 Thread Josh Blum


On 01/09/2013 06:39 PM, Luong Tan Phong wrote:
 My receiver object inherit from gr_hier_block2, and the sourcecode:
 
 connect(self(), 0, iq_resamp, 0);
 connect(iq_resamp, 0, nb, 0);
 connect(nb, 0, filter, 0);
 connect(filter, 0, sql, 0);
 connect(sql, 0, agc, 0);
 connect(agc, 0, demod_am, 0);
 connect(agc, 0, demod_ssb, 0);
 connect(demod_ssb, 0, selector, 0);
 connect(demod_am, 0, selector, 1);
 connect(selector, 0, self(), 0);
 
 If I remove the selector object and connect demod_ssb/demod_am to self(),
 it OK.
 


I'm not sure. All of the blocking calls in this block should be
interruptible by boost thread interrupt (when stop is called). Are you
able to rebuild or debug this?

I suspect that one of the work calls is blocking and not interrupting...
https://github.com/guruofquality/grextras/blob/master/lib/stream_selector.cc

Can I ask what version of boost. To make sure this isnt the issue:
http://gnuradio.org/redmine/issues/477

-josh

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Stream_Selector (grextras) on Windows

2013-01-09 Thread Josh Blum


On 01/08/2013 09:24 PM, Luong Tan Phong wrote:
 Hi list,
 
 I installed gnuradio (with grextras), uhd libraries on Windows from
 sources. My project used stream_selector (C++) class to to dynamically
 reconfigure the flow graph at runtime. When I call gr_top_block.stop()/
 wait(), the wait() function don't return in a long time and I must to kill
 my application process to finish.
 
 Could you help me, please?
 
 Best regards,
 
 LTP.
 

stop() causes a thread interruption signal
wait() blocks on joining all scheduler threads

If wait is blocking forever then a work function is blocked on something
and not exiting, or for some reason a scheduler thread is not exiting.

I'm really not sure why, but I would like to fix the issue. Can you
narrow down the issue to a subset of the blocks that cause a problem?
code snippet? Is there a reason you think its the stream selector blocks
(for example)?

-josh

 
 
 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org
 https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Stream_Selector (grextras) on Windows

2013-01-08 Thread Luong Tan Phong
Hi list,

I installed gnuradio (with grextras), uhd libraries on Windows from
sources. My project used stream_selector (C++) class to to dynamically
reconfigure the flow graph at runtime. When I call gr_top_block.stop()/
wait(), the wait() function don't return in a long time and I must to kill
my application process to finish.

Could you help me, please?

Best regards,

LTP.
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio