Thread communication with params and queue of messages

Login to reply to this topic.
Fri, 2008-03-28 11:06
Joined: 2006-10-11
Forum posts: 10

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,
Sergio.


Fri, 2008-03-28 15:48
Joined: 2004-07-17
Forum posts: 110
Re: Thread communication with params and queue of messages

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.

Fri, 2008-03-28 18:05
Joined: 2007-09-23
Forum posts: 125
Re: Thread communication with params and queue of messages

Depends upon the data you want to transmit, but if its just some event notification type thing you could consider publish and subscribe.

Mon, 2008-03-31 07:51
Joined: 2006-10-11
Forum posts: 10
Re: Thread communication with params and queue of messages

Thank you for answer.
Sergio

  • Login to reply to this topic.