Function gnunet_sys::GNUNET_SCHEDULER_add_now_with_lifeness[][src]

pub unsafe extern "C" fn GNUNET_SCHEDULER_add_now_with_lifeness(
    lifeness: c_int,
    task: GNUNET_SCHEDULER_TaskCallback,
    task_cls: *mut c_void
) -> *mut GNUNET_SCHEDULER_Task

Schedule a new task to be run as soon as possible with the (transitive) ignore-shutdown flag either explicitly set or explicitly enabled. This task (and all tasks created from it, other than by another call to this function) will either count or not count for the ‘lifeness’ of the process. This API is only useful in a few special cases.

@param lifeness #GNUNET_YES if the task counts for lifeness, #GNUNET_NO if not. @param task main function of the task @param task_cls closure of @a task @return unique task identifier for the job only valid until @a task is started!