![]() |
reactor-c 1.0
C Runtime for Lingua Franca
|
Scheduler API for the threaded C runtime. More...
Go to the source code of this file.
Functions | |
| 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'. | |
| void | lf_sched_free (lf_scheduler_t *scheduler) |
| Free the memory used by the scheduler. | |
| reaction_t * | lf_sched_get_ready_reaction (lf_scheduler_t *scheduler, int worker_number) |
| Ask the scheduler for one more reaction. | |
| void | lf_sched_init (environment_t *env, size_t number_of_workers, sched_params_t *parameters) |
| Initialize the scheduler. | |
| 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 current tag. | |
Scheduler API for the threaded C runtime.
A scheduler for the threaded runtime of reactor-c should provide an implementation for functions that are defined in this header file.