![]() |
![]() |
![]() |
Send notifications to queued clients
#include <sys/iofunc.h> void iofunc_notify_trigger( iofunc_notify_t *nop, int count, int index );
libc
The iofunc_notify_trigger() function examines all entries given in the list maintained at nop [index] to see if the event should be delivered to the client. If the specified count is greater than the trigger count for the particular notification list element, MsgDeliverEvent() is called to deliver the event to the client whose rcvid is stored in the notification list element, and the list element is disarmed.
Note that if the client has specified a code of SI_NOTIFY, then the value that the client specified (e.g. the value member of the struct sigevent) has the top three bits ORed with the reason for the trigger (this is the expression _NOTIFY_COND_INPUT << index), as in the following table:
If the client has specified a code of something other than SI_NOTIFY then this routine doesn't modify the value member in any way.
See the Writing a Resource Manager chapter of Programmer's Guide.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
iofunc_notify(), iofunc_notify_remove(), sigevent
![]() |
![]() |
![]() |