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

Native timeout implementation, sync_shutdown made threadsafe, and is_present added for timers #36

Merged
merged 7 commits into from
Dec 21, 2022

Conversation

cmnrd
Copy link
Contributor

@cmnrd cmnrd commented Dec 16, 2022

This adds a native implementation for LF's timeout property. If a timeout is specified, then the shutdown reactions will be invoked precisely at tag (timeout, 0). This PR further makes sure that sync_shutdown is thraed safe and can be called multiple times. Finally, this PR also extends timers as well as startup and shutdown triggers by an is_present method.

Fixes #34
Fixes #26

@cmnrd cmnrd requested a review from tanneberger December 16, 2022 11:34
@cmnrd cmnrd changed the title Add native tiimeout implementation, make sync_shutdown threadsafe and add is_present for timers Add native timeout implementation, make sync_shutdown threadsafe and add is_present for timers Dec 16, 2022
@cmnrd cmnrd merged commit ea4b3e6 into master Dec 21, 2022
@cmnrd cmnrd deleted the timeout branch December 21, 2022 08:42
@lhstrh lhstrh changed the title Add native timeout implementation, make sync_shutdown threadsafe and add is_present for timers Native timeout implementation, sync_shutdown made threadsafe, and is_present added for timers Feb 23, 2023
@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
2 participants