Skip to content

Commit

Permalink
Document that rmw_wait() SHOULD use a monotonic clock (#316)
Browse files Browse the repository at this point in the history
* Document that rmw_wait() SHOULD use a monotonic clock

Signed-off-by: Ivan Santiago Paunovic <[email protected]>

* nit

Signed-off-by: Ivan Santiago Paunovic <[email protected]>

Co-authored-by: Michel Hidalgo <[email protected]>

Co-authored-by: Michel Hidalgo <[email protected]>
  • Loading branch information
ivanpauno and hidmic authored Feb 7, 2022
1 parent c49ad1e commit 5c822d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rmw/include/rmw/rmw.h
Original file line number Diff line number Diff line change
Expand Up @@ -2564,10 +2564,10 @@ rmw_destroy_wait_set(rmw_wait_set_t * wait_set);
* This function adds middleware-specific conditions to the wait set and waits
* until one or more become ready, or until the timeout is reached.
*
* \remark Elapsed time is measured against the system clock.
* Timeout granularity is thus bound to that of the aforementioned clock and,
* depending on the underlying implementation, to that of platform-specific
* APIs to sleep and/or wait.
* \remark Elapsed time should be measured using a monotonic clock,
* though rmw implementations could use a different one.
* Timeout granularity is thus bound to that of the clock used by the underlying implementation,
* and to the platform-specific APIs used to sleep and/or wait.
*
* \remark
* The amount of time this function actually waits may be either above or
Expand Down

0 comments on commit 5c822d1

Please sign in to comment.