Function gnunet_sys::GNUNET_SCHEDULER_get_load[][src]

pub unsafe extern "C" fn GNUNET_SCHEDULER_get_load(
    p: GNUNET_SCHEDULER_Priority
) -> c_uint

Get information about the current load of this scheduler. Use this function to determine if an elective task should be added or simply dropped (if the decision should be made based on the number of tasks ready to run).

@param p priority-level to query, use KEEP to query the level of the current task, use COUNT to get the sum over all priority levels @return number of tasks pending right now