A retry timer.
More...
#include <retry.h>
A retry timer.
Definition at line 21 of file retry.h.
◆ list
◆ running
unsigned int retry_timer::running |
Timer is currently running.
Definition at line 25 of file retry.h.
◆ timeout
unsigned long retry_timer::timeout |
◆ min
unsigned long retry_timer::min |
Minimum timeout value (in ticks), or zero to use default.
The timeout will never be reduced below this value.
Definition at line 32 of file retry.h.
◆ max
unsigned long retry_timer::max |
Maximum timeout value (in ticks), or zero to use default.
The timeout will be deemed permanent (according to the failure indicator passed to expired()) when it exceeds this value.
Definition at line 39 of file retry.h.
◆ start
unsigned long retry_timer::start |
Start time (in ticks)
Definition at line 41 of file retry.h.
◆ count
unsigned int retry_timer::count |
Retry count.
Definition at line 43 of file retry.h.
◆ expired
Timer expired callback.
- Parameters
-
timer | Retry timer |
fail | Failure indicator |
The timer will already be stopped when this method is called. The failure indicator will be True if the retry timeout has already exceeded max_timeout
.
Definition at line 53 of file retry.h.
◆ refcnt
struct refcnt* retry_timer::refcnt |
Reference counter.
If this interface is not part of a reference-counted object, this field may be NULL.
Definition at line 59 of file retry.h.
The documentation for this struct was generated from the following file: