[Ace-users] [ace-users] Message Passing Between Two Tasks

Steve Huston shuston at riverace.com
Fri Dec 14 10:54:27 CST 2007


Hi David,

> I am very new to ACE

Welcome!

> I am trying to see how to pass messages between two different
> tasks. All the examples show message queues in a single task,
> where can I go to get an example of message passing between two
> tasks?

You'll need a way for one task to know about the other, then you can
call putq() on the destination task to enqueue the message.

If your different tasks are related (e.g., different steps in
processing) you may want to look into the Streams framework as well
(see C++NPv2 chapter 9 and APG chapter 18; for book info see
http://www.riverace.com/acebooks/index.htm)

Best regards,
-Steve

--
Steve Huston, Riverace Corporation
Want to take ACE training on YOUR schedule?
See http://www.riverace.com/training.htm




More information about the Ace-users mailing list