Hi,
I have a resource manager and would like to send it a pulse from
a thread within the same process.
I think I should use pulse_attach from the resource manager framework
to attach a handler function.
But how can I find the Channel, I have to connect to to send the pulse?
Best regards,
Stefan
Stefan Bittner <bittner@3soft.de> wrote:
I have a resource manager and would like to send it a pulse from
a thread within the same process.
I think I should use pulse_attach from the resource manager framework
to attach a handler function.
But how can I find the Channel, I have to connect to to send the pulse?
You MsgSendPulse() to a connection (coid), which is returned to you
from message_connect(). So the pseudo-code sequence might be -
dispatch = dispatch_create()
pulse = pulse_attach(dispatch)
coid = message_connect(dispatch, MSG_FLAG_SIDE_CHANNEL)
…
MsgSendPulse(coid, pulse)