Function silc_schedule_init
SYNOPSIS
SilcSchedule silc_schedule_init(int max_tasks, void *app_context);
DESCRIPTION
Initializes the scheduler. This returns the scheduler context that
is given as argument usually to all silc_schedule_* functions.
The `app_context' is application specific context that is delivered
to all task callbacks. The caller must free that context. The
'app_context' can be for example the application itself.
The `max_tasks' is the maximum number of SILC_TASK_FD tasks in the
scheduler. Set value to 0 to use default. Operating system will
enforce the final limit. On some operating systems the limit can
be significantly increased when this function is called in priviliged
mode (as super user).
|