reactor-c
C Runtime for Lingua Franca
|
Declarations for watchdogs. More...
Go to the source code of this file.
Data Structures | |
struct | watchdog_t |
Typedefs | |
typedef void(* | watchdog_function_t) (void *) |
typedef struct watchdog_t | watchdog_t |
Functions | |
void | lf_watchdog_start (watchdog_t *watchdog, interval_t additional_timeout) |
Start or restart the watchdog timer. | |
void | lf_watchdog_stop (watchdog_t *watchdog) |
Stop the specified watchdog without invoking the expiration handler. This function sets the expiration time of the watchdog to NEVER . | |
Declarations for watchdogs.
typedef void(* watchdog_function_t) (void *) |
Watchdog function type. The argument passed to one of these watchdog functions is a pointer to the self struct for the reactor.
typedef struct watchdog_t watchdog_t |
Typdef for watchdog_t struct, used to call watchdog handler.
void lf_watchdog_start | ( | watchdog_t * | watchdog, |
interval_t | additional_timeout ) |
Start or restart the watchdog timer.
This function sets the expiration time of the watchdog to the current logical time plus the minimum timeout of the watchdog plus the specified additional_timeout
. This function assumes the reactor mutex is held when it is called; this assumption is satisfied whenever this function is called from within a reaction that declares the watchdog as an effect.
watchdog | The watchdog to be started |
additional_timeout | Additional timeout to be added to the watchdog's minimum expiration. |
void lf_watchdog_stop | ( | watchdog_t * | watchdog | ) |
Stop the specified watchdog without invoking the expiration handler. This function sets the expiration time of the watchdog to NEVER
.
watchdog | The watchdog. |