Skip to content
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

Avoid locking when scheduling actions #23

Merged
merged 12 commits into from
Aug 22, 2022
Merged

Avoid locking when scheduling actions #23

merged 12 commits into from
Aug 22, 2022

Conversation

cmnrd
Copy link
Contributor

@cmnrd cmnrd commented Aug 5, 2022

This patch changes the mechanism used for scheduling actions. Instead of managing everything centrally, each action is now responsible for keeping track of its scheduled values. This considerably reduces the work that needs to be done while holding a lock. This patch further redesigns the event queue, such that in most cases scheduling can be done without locking.

@cmnrd cmnrd requested a review from tanneberger August 5, 2022 11:28
Copy link
Member

@tanneberger tanneberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't see any grave mistakes

@cmnrd cmnrd merged commit e294554 into master Aug 22, 2022
@cmnrd cmnrd deleted the lock-free-actions branch August 22, 2022 12:34
cmnrd added a commit to lf-lang/lingua-franca that referenced this pull request Aug 22, 2022
Specifically, this includes the following PRs:
- lf-lang/reactor-cpp#22
- lf-lang/reactor-cpp#23
cmnrd added a commit to lf-lang/lingua-franca that referenced this pull request Aug 22, 2022
Specifically, this includes the following PRs:
- lf-lang/reactor-cpp#22
- lf-lang/reactor-cpp#23
cmnrd added a commit to lf-lang/lingua-franca that referenced this pull request Aug 22, 2022
Specifically, this includes the following PRs:
- lf-lang/reactor-cpp#22
- lf-lang/reactor-cpp#23
cmnrd added a commit to lf-lang/lingua-franca that referenced this pull request Aug 23, 2022
Specifically, this includes the following PRs:
- lf-lang/reactor-cpp#22
- lf-lang/reactor-cpp#23
cmnrd added a commit to lf-lang/lingua-franca that referenced this pull request Aug 23, 2022
Specifically, this includes the following PRs:
- lf-lang/reactor-cpp#22
- lf-lang/reactor-cpp#23
@lhstrh lhstrh added the enhancement Enhancement of existing feature label Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants