reactor-c 1.0
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
schedule.h
Go to the documentation of this file.
1
17
18#ifndef SCHEDULE_H
19#define SCHEDULE_H
20
21#include "lf_types.h"
22#include "tag.h"
23
42
61trigger_handle_t lf_schedule_int(void* action, interval_t extra_delay, int value);
62
154trigger_handle_t lf_schedule_token(void* action, interval_t extra_delay, lf_token_t* token);
155
182trigger_handle_t lf_schedule_copy(void* action, interval_t offset, void* value, size_t length);
183
202trigger_handle_t lf_schedule_value(void* action, interval_t extra_delay, void* value, int length);
203
240
260bool lf_check_deadline(void* self, bool invoke_deadline_handler);
261
277void lf_update_deadline(void* self, interval_t updated_deadline);
278
279#endif // SCHEDULE_H
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.
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).
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...
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.
bool lf_check_deadline(void *self, bool invoke_deadline_handler)
Check the deadline of the currently executing reaction against the current physical time.
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.
void lf_update_deadline(void *self, interval_t updated_deadline)
Update the deadline of the currently executing reaction.
int64_t interval_t
Interval of time.
Definition tag.h:107
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.
int trigger_handle_t
Handles for scheduled triggers.
Definition lf_types.h:146
Type definitions that are widely used across different parts of the runtime.
Execution environment.
Definition environment.h:52
Token type for dynamically allocated arrays and structs sent as messages.
Definition lf_token.h:99
Trigger struct representing an output, timer, action, or input.
Definition lf_types.h:391
Time and tag definitions and functions for Lingua Franca.