Thread communication with params and queue of messages
| Fri, 2008-03-28 11:06 | |
|
Dear all, please take a look: I want a method to communicate two RThreads similiar to win32 SendNotifyMessage, this is with params (LPARAM , WPARAM) and a queue of messages. I've see the active objects class but I'm not able to distinguish if AO have a queue of request to control SetActive/RunL calls. Anyway AO seems to do not support params. Please some help about one method to do this. Regards, |
|






Forum posts: 110
No AOs don't come with an event queue. It's strictly one event at a time. As for sending params, if the two threads are in the same process you could just use a block of shared data.
OS9 has RMsgQueue. I suggest you take a look at that and see if it will do what you want.
Forum posts: 125
Depends upon the data you want to transmit, but if its just some event notification type thing you could consider publish and subscribe.
Forum posts: 10
Thank you for answer.
Sergio