reactor-c 1.0
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
scheduler.h File Reference

Scheduler API for the threaded C runtime. More...

#include "lf_types.h"
#include "scheduler_instance.h"

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_tlf_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.

Detailed Description

Scheduler API for the threaded C runtime.

Author
Soroush Bateni
Edward A. Lee

A scheduler for the threaded runtime of reactor-c should provide an implementation for functions that are defined in this header file.