reactor-c
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
src_gen_stub.c File Reference
#include <stdbool.h>
#include "tag.h"
#include "environment.h"

Functions

void _lf_initialize_trigger_objects (void)
 
void lf_terminate_execution (void)
 
void lf_set_default_command_line_options (void)
 Generated function that optionally sets default command-line options.
 
void _lf_initialize_watchdogs (environment_t **envs)
 
void logical_tag_complete (tag_t tag_to_send)
 
int _lf_get_environments (environment_t **envs)
 Will update the argument to point to the beginning of the array of environments in this program.
 

Variables

environment_t _env
 

Function Documentation

◆ _lf_get_environments()

int _lf_get_environments ( environment_t ** envs)

Will update the argument to point to the beginning of the array of environments in this program.

Note
Is code-generated by the compiler
Parameters
envsA double pointer which will be dereferenced and modified
Returns
int The number of environments in the array

◆ _lf_initialize_trigger_objects()

void _lf_initialize_trigger_objects ( )

Generated function that produces a table containing all triggers (i.e., inputs, timers, and actions).

◆ _lf_initialize_watchdogs()

void _lf_initialize_watchdogs ( environment_t ** envs)

◆ lf_set_default_command_line_options()

void lf_set_default_command_line_options ( void )

Generated function that optionally sets default command-line options.

◆ lf_terminate_execution()

void lf_terminate_execution ( void )

◆ logical_tag_complete()

void logical_tag_complete ( tag_t tag_to_send)

Placeholder for code-generated function that will, in a federated execution, be used to coordinate the advancement of tag. It will notify the runtime infrastructure (RTI) that all reactions at the specified logical tag have completed. This function should be called only while holding the mutex lock.

Parameters
tag_to_sendThe tag to send.

Variable Documentation

◆ _env

This file enables unit tests to run without there having been an actual code generation from a Lingua Franca program. It defines (mostly empty) functions that would normally be code generated. Of course, this strategy will only work for tests that do not actually need functional versions of these functions.