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

Change nanosleep to lf_sleep in federate and RTI code #219

Merged
merged 1 commit into from
May 28, 2023

Conversation

siljesu
Copy link
Contributor

@siljesu siljesu commented May 22, 2023

Platform abstraction for sleep is already available as lf_sleep(), and should be used instead of nanosleep() in the federate and RTI code. Timespec structs can then be removed entirely and just use the available macros or variables in nanoseconds as input to lf_sleep().

CONNECT_RETRY_INTERVAL is changed to be in nanoseconds instead of seconds, as the other macros.

@erlingrj
Copy link
Collaborator

This looks good to me. For reference, Silje is merging in the changes required to run the RTI as a user thread on the Zephyr platform.

@Benichiwa on the macos target we are getting a strange-looking Watchdog failure. Can you make anything of it? It is surely not caused by this PR.

@edwardalee
Copy link
Contributor

This Watchdog failure looks to me like something is trying to happen after the program has shut down. I will take a look.

Copy link
Contributor

@edwardalee edwardalee left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@edwardalee edwardalee left a comment

Choose a reason for hiding this comment

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

LGTM!

@edwardalee edwardalee merged commit c561356 into lf-lang:main May 28, 2023
@lhstrh lhstrh added the enhancement Enhancement of existing feature label Aug 28, 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.

4 participants