Remove notification entries from a list
#include <sys/iofunc.h> void iofunc_notify_remove( resmgr_context_t * ctp, iofunc_notify_t * nop ); void iofunc_notify_remove_strict( resmgr_context_t *ctp, iofunc_notify_t *nop, int lim );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The iofunc_notify_remove() function removes all of the entries associated with the current client from the notification list passed in nop. The client information is obtained from the ctp.
The iofunc_notify_remove_strict() function is similar but lets you specify the number of entries in nop. This variant is useful for managers that support the extended conditions of poll().
If the ctp pointer is NULL, then all of the notify entries will be removed. A resource manager generally calls this function, with NULL as the ctp in the close_dup callout, to clean up all handles associated with this connection. If the handles are shared between several connections, then the ctp should be provided to clean up after each client.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |