-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1451 from lf-lang/fix-index-deadline3
Fix for broken deadline propagation mechanism
- Loading branch information
Showing
12 changed files
with
350 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Test to verify that deadline priority are inherited | ||
target C { | ||
timeout: 1 sec, | ||
threading: false | ||
} | ||
|
||
preamble {= int global_cnt = 0; =} | ||
|
||
reactor NoDeadline { | ||
timer t(0 msec, 100 msec) | ||
|
||
reaction(t) {= global_cnt++; =} | ||
} | ||
|
||
reactor WithDeadline { | ||
timer t(0 msec, 100 msec) | ||
|
||
reaction(t) {= =} | ||
|
||
reaction(t) {= | ||
if (global_cnt != 0) { | ||
lf_print_error_and_exit("Deadline reaction was not executed first. cnt=%i", global_cnt); | ||
} | ||
global_cnt--; | ||
=} deadline(100 sec) {= =} | ||
} | ||
|
||
main reactor { | ||
a = new NoDeadline() | ||
b = new WithDeadline() | ||
} |
Oops, something went wrong.