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

A struct representing a barrier in threaded LF programs. More...

#include <lf_types.h>

Data Fields

tag_t horizon
 Tag horizon for barrier advancement.
int requestors
 Number of requestors waiting at the barrier.

Detailed Description

A struct representing a barrier in threaded LF programs.

This will prevent advancement of the current tag if the number of requestors is larger than 0 or the value of horizon is not (FOREVER, 0).

Field Documentation

◆ horizon

tag_t lf_tag_advancement_barrier_t::horizon

Tag horizon for barrier advancement.

If this value is not (FOREVER, 0), the runtime will not advance its tag beyond this horizon. Used to coordinate tag advancement across multiple threads.

◆ requestors

int lf_tag_advancement_barrier_t::requestors

Number of requestors waiting at the barrier.

Used to track how many threads have requested the barrier to be raised. The barrier will prevent tag advancement if this value is greater than 0.


The documentation for this struct was generated from the following file:
  • /Users/runner/work/reactor-c/reactor-c/include/core/lf_types.h