automatically from the scheduler. It is safe to re-register the
task in task callback. It is also safe to unregister a task in
the task callback. */
automatically from the scheduler. It is safe to re-register the
task in task callback. It is also safe to unregister a task in
the task callback. */
/* Platform specific process signal task. On Unix systems this is one of
the signals described in signal(7). On other platforms this may not
be available at all. Only one callback per signal may be added. */
/* Platform specific process signal task. On Unix systems this is one of
the signals described in signal(7). On other platforms this may not
be available at all. Only one callback per signal may be added. */
struct SilcTaskStruct header;
unsigned int scheduled : 1;
unsigned int events : 14;
struct SilcTaskStruct header;
unsigned int scheduled : 1;
unsigned int events : 14;
void *internal;
void *app_context; /* Application specific context */
SilcTaskNotifyCb notify; /* Notify callback */
void *notify_context; /* Notify context */
SilcStack stack; /* Stack */
void *internal;
void *app_context; /* Application specific context */
SilcTaskNotifyCb notify; /* Notify callback */
void *notify_context; /* Notify context */
SilcStack stack; /* Stack */
SilcHashTable fd_queue; /* FD task queue */
SilcList fd_dispatch; /* Dispatched FDs */
SilcList timeout_queue; /* Timeout queue */
SilcHashTable fd_queue; /* FD task queue */
SilcList fd_dispatch; /* Dispatched FDs */
SilcList timeout_queue; /* Timeout queue */