![]() |
reactor-c 1.0
C Runtime for Lingua Franca
|
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. | |
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).
| 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.
| 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.