Skip to content

timers: consider implementation of timers which uses wait thread #6

Closed

Description

@wjwwood

Currently timers are naively implemented using a thread per timer, but it should be possible to implement the timers using a timeout argument to the ros_middleware_interface::wait function. This would potentially be much more efficient and at least more ellegant, as the total number of threads and ros_middleware_interface::GuardConditionHandle's would be significantly reduced. A stepping stone to this, without requiring a timeout in the ros_middleware_interface::wait function, would be to have one thread for all timers which does the same waiting mechanism, but using a sleep function not as a parameter to ros_middleware_interface::wait.

Activity

  1. added
    enhancement
    on Sep 8, 2014
  2. added and removed
    enhancement
    on Feb 24, 2015
  3. self-assigned this
    on Jul 28, 2015
  4. added
    ready
    on Jul 28, 2015
  5. jackieokay commented on Jul 28, 2015

    @jackieokay
    Contributor

    Assigning this to myself and thinking about it this week because of its relationship to real-time performance.

    this issue also mentions adding a timeout argument to rmw_wait, which is addressed in this series of changes: ros2/ros2#73

  6. added
    in progress
    in review
    and removed
    ready
    in progress
    on Jul 28, 2015
  7. added
    in progress
    and removed
    in review
    on Aug 4, 2015
  8. added
    in review
    and removed
    in progress
    on Aug 5, 2015
  9. removed
    in review
    on Aug 10, 2015
  10. added a commit that references this issue on Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions