-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add C code generation to store currently executed reaction, add AnytimePrime.lf as a demo for check_deadline(). #960
Conversation
…action current. (By assign the reaction to be executed) `struct reaction_t *executing_reaction` is a new field added to `struct self_base_t` in: https://github.com/lf-lang/reactor-c/pull/38/files#diff-261683f87319ce39fe4afeeea7cc128e146c5ea9329b08babd553fd748163a76
…f, which performs anytime computation to find the largest prime within the given deadline. This demo was built with help from @edwardalee and @lhstrh. The program's name is inspired by @lhstrh.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! This is a significant improvement on our deadline mechanism...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only minor issues.
Co-authored-by: Edward A. Lee <[email protected]>
…LF programs as well as the AnytimePrime.lf in lf-lang/lingua-franca#960.
…stead of vector.c, by including cmake.
I believe I made the requested changes. Please let me know if there's anything missing!
Relevant PR in reactor-c: lf-lang/reactor-c#38
Relevant issue: #403
This demo program was built with the help of @edwardalee and @lhstrh.
The demo program's name is inspired by @lhstrh.