Skip to content

Commit

Permalink
Merge pull request #2412 from lf-lang/add-reaction
Browse files Browse the repository at this point in the history
Added reactions to test
  • Loading branch information
lhstrh authored Sep 29, 2024
2 parents 777e231 + 000ecaf commit 1ad92a1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/resources/lib/c/reactor-c
13 changes: 13 additions & 0 deletions test/C/src/multiport/BankOfActionsIsPresentSetup.lf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ target C
reactor R1 {
logical action a1
logical action a2

reaction(startup) -> a1, a2 {=
lf_schedule(a1, MSEC(10));
lf_schedule(a2, MSEC(10));
=}

reaction(a1) {=
lf_print("a1");
=}

reaction(a2) {=
lf_print("a2");
=}
}

reactor R2 {
Expand Down

0 comments on commit 1ad92a1

Please sign in to comment.