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 timer with period of 0s to 1ms #275

Closed
wants to merge 1 commit into from

Conversation

dirk-thomas
Copy link
Member

Related to ros2/rcl#291.

A timer with a period of 0s is kind of weird. It implies an infinite frequency.

@dirk-thomas dirk-thomas added bug Something isn't working in review Waiting for review (Kanban column) labels Sep 6, 2018
@dirk-thomas dirk-thomas self-assigned this Sep 6, 2018
@dhood dhood added the in progress Actively being worked on (Kanban column) label Sep 6, 2018
@dirk-thomas dirk-thomas removed the in progress Actively being worked on (Kanban column) label Sep 6, 2018
@wjwwood
Copy link
Member

wjwwood commented Sep 6, 2018

I don't think this is the right way to resolve this. There's already a TODO to have a "call soon" like function on the node, at which point we could make 0s an invalid value for timers, until then 1ms, while similar, is not the same thing.

If you truly believe a period of zero makes no sense, then it should not be allowed as an argument to the create timer function.

@dirk-thomas
Copy link
Member Author

dirk-thomas commented Sep 6, 2018

Obsolete with the referenced ticket keeping support for zero periods.

@dirk-thomas dirk-thomas closed this Sep 6, 2018
@dirk-thomas dirk-thomas deleted the fix_next_timer_call branch September 6, 2018 22:22
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants