# Stream\_Selector (grextras) on Windows

**URL:** <https://www.ruby-forum.com/t/stream-selector-grextras-on-windows/225449>\
**Category:** GNU Radio\
**Created:** [January 9, 2013, 4:25am UTC](https://www.ruby-forum.com/t/stream-selector-grextras-on-windows/225449 "2013-01-09T04:25:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [January 9, 2013, 4:25am UTC](https://www.ruby-forum.com/t/stream-selector-grextras-on-windows/225449/1 "2013-01-09T04:25:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Luong\_Tan\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/3be4f8/32.png) [@Luong\_Tan\_P](https://www.ruby-forum.com/u/Luong_Tan_P)\
**Post date:** [January 9, 2013, 4:24pm UTC](https://www.ruby-forum.com/t/stream-selector-grextras-on-windows/225449/2 "2013-01-09T16:24:00Z")

</div>

On 01/08/2013 09:24 PM, Luong Tan P. wrote:

> 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

---

<div class="post-metadata">

**Author:** ![Luong\_Tan\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/3be4f8/32.png) [@Luong\_Tan\_P](https://www.ruby-forum.com/u/Luong_Tan_P)\
**Post date:** [January 13, 2013, 9:11pm UTC](https://www.ruby-forum.com/t/stream-selector-grextras-on-windows/225449/3 "2013-01-13T21:11:39Z")

</div>

On 01/09/2013 06:39 PM, Luong Tan P. wrote:

> 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](http://gnuradio.org/redmine/issues/477)

-josh
