# Old School Message Queue w/ Out Stream I/O

**URL:** <https://www.ruby-forum.com/t/old-school-message-queue-w-out-stream-i-o/233304>\
**Category:** GNU Radio\
**Created:** [December 3, 2014, 1:00am UTC](https://www.ruby-forum.com/t/old-school-message-queue-w-out-stream-i-o/233304 "2014-12-03T01:00:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [December 3, 2014, 1:00am UTC](https://www.ruby-forum.com/t/old-school-message-queue-w-out-stream-i-o/233304/1 "2014-12-03T01:00:16Z")

</div>

I’m using old-school message queues to do some thing with async messages  
from UHD. I have written a custom C++ block, which I was hoping would  
have  
a single msgq based input.

However, I’ve found that the work() function never gets called for an  
incoming msg unless I add stream based I/O. Does this sound right?

-John

---

<div class="post-metadata">

**Author:** ![jmaenpaa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9de053/32.png) [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Post date:** [December 3, 2014, 11:20am UTC](https://www.ruby-forum.com/t/old-school-message-queue-w-out-stream-i-o/233304/2 "2014-12-03T11:20:23Z")

</div>

On 12/03/2014 12:59 AM, John M. wrote:

> I’m using old-school message queues to do some thing with async messages  
> from UHD. I have written a custom C++ block, which I was hoping would  
> have a single msgq based input.
> 
> However, I’ve found that the work() function never gets called for an  
> incoming msg unless I add stream based I/O. Does this sound right?

Yeah, it does. Since the legacy, bit-rotten message queues are not built  
into the scheduler, no one is telling the block to run work().

Ping me (on- or offline) if there’s any trouble with the gr-uhd  
components or features you could use in there.

Cheers,  
M

---

<div class="post-metadata">

**Author:** ![jmaenpaa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9de053/32.png) [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Post date:** [December 3, 2014, 4:20pm UTC](https://www.ruby-forum.com/t/old-school-message-queue-w-out-stream-i-o/233304/3 "2014-12-03T16:20:15Z")

</div>

Customer. Stuck in ancient GR that doesn’t have all of your  
awesome/recent features on gr-uhd.

-John
