reactor-c
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
scheduler.h
Go to the documentation of this file.
1
13#ifndef LF_SCHEDULER_H
14#define LF_SCHEDULER_H
15
16#include "lf_types.h"
17#include "scheduler_instance.h"
18
31void lf_sched_init(environment_t* env, size_t number_of_workers, sched_params_t* parameters);
32
39void lf_sched_free(lf_scheduler_t* scheduler);
40
54reaction_t* lf_sched_get_ready_reaction(lf_scheduler_t* scheduler, int worker_number);
55
65void lf_sched_done_with_reaction(size_t worker_number, reaction_t* done_reaction);
66
85void lf_scheduler_trigger_reaction(lf_scheduler_t* scheduler, reaction_t* reaction, int worker_number);
86
87#endif // LF_SCHEDULER_H
Type definitions that are widely used across different parts of the runtime.
void lf_sched_init(environment_t *env, size_t number_of_workers, sched_params_t *parameters)
Initialize the scheduler.
Definition scheduler_GEDF_NP.c:122
void lf_sched_free(lf_scheduler_t *scheduler)
Free the memory used by the scheduler.
Definition scheduler_GEDF_NP.c:150
void lf_sched_done_with_reaction(size_t worker_number, reaction_t *done_reaction)
Inform the scheduler that worker thread 'worker_number' is done executing the 'done_reaction'.
Definition scheduler_GEDF_NP.c:229
reaction_t * lf_sched_get_ready_reaction(lf_scheduler_t *scheduler, int worker_number)
Ask the scheduler for one more reaction.
Definition scheduler_GEDF_NP.c:157
void lf_scheduler_trigger_reaction(lf_scheduler_t *scheduler, reaction_t *reaction, int worker_number)
Inform the scheduler that worker thread 'worker_number' would like to trigger 'reaction' at the curre...
Definition scheduler_GEDF_NP.c:236
Common scheduler parameters.
Execution environment. This struct contains information about the execution environment....
Definition environment.h:49
Paramters used in schedulers of the threaded reactor C runtime.
Definition scheduler_instance.h:34
Definition lf_types.h:155
Struct representing the most common scheduler parameters.
Definition scheduler_instance.h:92