X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilcschedule.h;h=eb0e0fbce1a92b08d1b60423310a494bcc19684c;hb=7910ce2a5c55211a4ea09a52832c6ed32c0b64fd;hp=45a5defa78343ffabc7b527a3ba3d051ad7c01a7;hpb=751b3b46d4acc38c2c35366706f5472c05ce3655;p=silc.git diff --git a/lib/silcutil/silcschedule.h b/lib/silcutil/silcschedule.h index 45a5defa..eb0e0fbc 100644 --- a/lib/silcutil/silcschedule.h +++ b/lib/silcutil/silcschedule.h @@ -316,6 +316,26 @@ SilcSchedule silc_schedule_init(int max_tasks); ***/ bool silc_schedule_uninit(SilcSchedule schedule); +/****f* silcutil/SilcScheduleAPI/silc_schedule_reinit + * + * SYNOPSIS + * + * SilcSchedule silc_schedule_reinit(int max_tasks); + * + * DESCRIPTION + * + * This function can be called to enlarge the task handling capabilities + * of the scheduler indicated by `schedule'. The `max_tasks' must be + * larger than what was set in silc_schedule_init function. This function + * returns FALSE if it cannot reinit the scheduler. This function does + * not do anything else except ready the scheduler to handle `max_tasks' + * number of tasks after this function returns. It is safe to call this + * function at any time, and it is guaranteed that existing tasks remain + * as they are in the scheduler. + * + ***/ +bool silc_schedule_reinit(SilcSchedule schedule, int max_tasks); + /****f* silcutil/SilcScheduleAPI/silc_schedule_stop * * SYNOPSIS