MsgReply from a separate thread

Can I have one thread MsgReceive(), pass the rcvid to a second thread and
have it send the MsgReply()?
reworded…
Does the thread that calls MsgReply() need to be the same one that called
MsgReceive()?

Thanks,
Shaun

Shaun Jackman <sjackman@nospam.vortek.com> wrote:

Can I have one thread MsgReceive(), pass the rcvid to a second thread and
have it send the MsgReply()?

Yes (within the same process)

reworded…
Does the thread that calls MsgReply() need to be the same one that called
MsgReceive()?

Reworded: No; but they must be in the same process :slight_smile:

Effectively, the “rcvid” is a magic cookie that identifies the held client
thread so that someone on the server side can do a reply.

Cheers,
-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.