Function gnunet_sys::GNUNET_SCHEDULER_driver_done[][src]

pub unsafe extern "C" fn GNUNET_SCHEDULER_driver_done(
    sh: *mut GNUNET_SCHEDULER_Handle
)

Counter-part of #GNUNET_SCHEDULER_driver_init. Has to be called by external event loop implementations after the scheduler has shut down. This is the case if both of the following conditions are met:

  • all tasks the scheduler has added through the driver’s add callback have been removed again through the driver’s del callback
  • the timeout the scheduler has set through the driver’s add_wakeup callback is FOREVER

@param sh the handle returned by #GNUNET_SCHEDULER_driver_init