Go to the source code of this file.
|seconds before immediately due timeout |
|seconds before next due timeout |
|seconds before a retry after a stop |
|if we have more than MAX_RETRY_ATTEMPTS within this (SCHEDULE_STOP_RETRY) many seconds, then we stop for SCHEDULE_RESTART_TIME |
|number of retries associated with SCHEDULE_STOP_RETRY |
Functions to initialize timer infrastruture and register periodic updates
Definition in file ped_schedule.h.
Initialize the internals necessary for the periodic timer/scheduler. Does not set timers. That's done with ped_schedule_reset. This must be called before using ped_schedule_reset.
Referenced by ped_init().
Clear existing timer if it exists, and set the timer fresh again. Starts a periodic timer every SCHEDULE_PERIOD seconds, and a one-shot timer that goes off in SCHEDULE_IMMEDIATE_DELAY seconds. Timer callback is ped_periodic.
If we're resetting, then something went wrong most likely (or it's a configuration load/reload) so we have a small delay timer before retrying. If all goes well, then the periodic timer will continue checks after that.