From a38dfce0e154ccf7190fc423dfbb9ad45fea7b0b Mon Sep 17 00:00:00 2001 From: "Edward A. Lee" Date: Sun, 29 Sep 2024 07:29:11 -0700 Subject: [PATCH 1/2] Added reactions to test --- core/src/main/resources/lib/c/reactor-c | 2 +- test/C/src/multiport/BankOfActionsIsPresentSetup.lf | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/core/src/main/resources/lib/c/reactor-c b/core/src/main/resources/lib/c/reactor-c index 12ba4ee56a..165f3fe107 160000 --- a/core/src/main/resources/lib/c/reactor-c +++ b/core/src/main/resources/lib/c/reactor-c @@ -1 +1 @@ -Subproject commit 12ba4ee56a70fc87b7e7b0a53dd5f9a425a9dc00 +Subproject commit 165f3fe1077eb98f3a888a70d61a710bfac59778 diff --git a/test/C/src/multiport/BankOfActionsIsPresentSetup.lf b/test/C/src/multiport/BankOfActionsIsPresentSetup.lf index 5348ebaded..41e0c555e9 100644 --- a/test/C/src/multiport/BankOfActionsIsPresentSetup.lf +++ b/test/C/src/multiport/BankOfActionsIsPresentSetup.lf @@ -5,6 +5,16 @@ 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 { From da8d98a903a0cb366afda0c163f4688bc17ff89d Mon Sep 17 00:00:00 2001 From: "Edward A. Lee" Date: Sun, 29 Sep 2024 10:31:53 -0700 Subject: [PATCH 2/2] Spotless --- test/C/src/multiport/BankOfActionsIsPresentSetup.lf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/C/src/multiport/BankOfActionsIsPresentSetup.lf b/test/C/src/multiport/BankOfActionsIsPresentSetup.lf index 41e0c555e9..fe2ce8e4bc 100644 --- a/test/C/src/multiport/BankOfActionsIsPresentSetup.lf +++ b/test/C/src/multiport/BankOfActionsIsPresentSetup.lf @@ -5,13 +5,16 @@ 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"); =}