reactor-c
C Runtime for Lingua Franca
|
Paramters used in schedulers of the threaded reactor C runtime. More...
#include <scheduler_instance.h>
Data Fields | |
struct environment_t * | env |
size_t | max_reaction_level |
Maximum number of levels for reactions in the program. | |
volatile bool | should_stop |
Indicate whether the program should stop. | |
volatile int * | indexes |
An array of atomic indexes. | |
void * | transfer_reactions |
Hold reactions temporarily. | |
size_t | number_of_workers |
Number of workers that this scheduler is managing. | |
volatile size_t | number_of_idle_workers |
Number of workers that are idle. Adding to/subtracting from this variable must be done atomically. | |
custom_scheduler_data_t * | custom_data |
Paramters used in schedulers of the threaded reactor C runtime.
custom_scheduler_data_t* lf_scheduler_t::custom_data |
struct environment_t* lf_scheduler_t::env |
volatile int* lf_scheduler_t::indexes |
An array of atomic indexes.
Can be used to avoid race conditions. Schedulers are allowed to to use as many indexes as they deem fit.
size_t lf_scheduler_t::max_reaction_level |
Maximum number of levels for reactions in the program.
volatile size_t lf_scheduler_t::number_of_idle_workers |
Number of workers that are idle. Adding to/subtracting from this variable must be done atomically.
size_t lf_scheduler_t::number_of_workers |
Number of workers that this scheduler is managing.
volatile bool lf_scheduler_t::should_stop |
Indicate whether the program should stop.
void* lf_scheduler_t::transfer_reactions |
Hold reactions temporarily.