with pulse_attach() we can receive a pulse through a function. the
prototype is:
int func(message_context_t *ctp, int code, unsigned flags, void
*handle);
That works correctly, pulse code ok, but I don’t know where to find the
value associated with the pulse:
I tried ctp->msg->pulse.value.sival_int, but it seems that it’s always
equal to 0.
On the client side, the sigevent structure is initialized like that:
SIGEV_PULSE_INIT(&event, coid, SIGEV_PULSE_PRIO_INHERIT,
VALUE_MODIFIED_PULSE_CODE, 1);
and the server call MsgDeliverEvent().
What’s wrong?
Alain.