reactor-c
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
schedule.h
Go to the documentation of this file.
1
19#ifndef API_H
20#define API_H
21
22#include "lf_types.h"
23#include "tag.h"
24
41trigger_handle_t lf_schedule(void* action, interval_t offset);
42
60trigger_handle_t lf_schedule_int(void* action, interval_t extra_delay, int value);
61
114trigger_handle_t lf_schedule_token(void* action, interval_t extra_delay, lf_token_t* token);
115
141trigger_handle_t lf_schedule_copy(void* action, interval_t offset, void* value, size_t length);
142
160trigger_handle_t lf_schedule_value(void* action, interval_t extra_delay, void* value, int length);
161
197
216bool lf_check_deadline(void* self, bool invoke_deadline_handler);
217
218#endif // API_H
Type definitions that are widely used across different parts of the runtime.
int trigger_handle_t
Definition lf_types.h:117
trigger_handle_t lf_schedule_int(void *action, interval_t extra_delay, int value)
Schedule the specified action with an integer value at a later logical time.
Definition schedule.c:21
trigger_handle_t lf_schedule_trigger(environment_t *env, trigger_t *trigger, interval_t delay, lf_token_t *token)
Schedule the specified trigger to execute in the specified environment with given delay and token.
Definition schedule.c:110
trigger_handle_t lf_schedule(void *action, interval_t offset)
Schedule an action to occur with the specified time offset with no payload (no value conveyed).
Definition schedule.c:17
trigger_handle_t lf_schedule_copy(void *action, interval_t offset, void *value, size_t length)
Schedule an action to occur with the specified value and time offset with a copy of the specified val...
Definition schedule.c:47
trigger_handle_t lf_schedule_value(void *action, interval_t extra_delay, void *value, int length)
Variant of lf_schedule_token that creates a token to carry the specified value.
Definition schedule.c:70
bool lf_check_deadline(void *self, bool invoke_deadline_handler)
Check the deadline of the currently executing reaction against the current physical time.
Definition schedule.c:99
trigger_handle_t lf_schedule_token(void *action, interval_t extra_delay, lf_token_t *token)
Schedule the specified action at a later tag with the specified token as a payload.
Definition schedule.c:36
Execution environment. This struct contains information about the execution environment....
Definition environment.h:49
Definition lf_token.h:94
Definition lf_types.h:208
Time and tag definitions and functions for Lingua Franca.
int64_t interval_t
Definition tag.h:68