reactor-c
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
self_base_t Struct Reference

The base type for all reactor self structs. More...

#include <lf_types.h>

Data Fields

struct allocation_record_tallocations
 
struct reaction_texecuting_reaction
 
environment_tenvironment
 
voidreactor_mutex
 

Detailed Description

The base type for all reactor self structs.

The first element of every self struct defined in generated code will be a pointer to an allocation record, which is either NULL or the head of a NULL-terminated linked list of allocation records. This list is used to free memory that has been dynamically allocated. This struct also provides a pointer to the currently executing reaction, to the environment in which the reaction is executing, and to the mutex that is used to protect the reactor. If modal models are being used, it also records the current mode.

Field Documentation

◆ allocations

struct allocation_record_t* self_base_t::allocations

◆ environment

environment_t* self_base_t::environment

◆ executing_reaction

struct reaction_t* self_base_t::executing_reaction

◆ reactor_mutex

void* self_base_t::reactor_mutex

The documentation for this struct was generated from the following file: