Fix high CPU usage due to rcl_wait waking quickly#355
Conversation
c85ea91 to
bfb4378
Compare
bfb4378 to
7f31f7e
Compare
|
@wjwwood @mjcarroll Please take a look again. I realized the problem was that Lines 504 to 508 in 7f31f7e I've replaced it's usage with a check if |
Could this also be solved with an extra boolean that is set by checking the timers before (or during) calculation of the |
…meout is not set Otherwise, there is a risk of integer overflow (e.g. in rmw_fastrtps) and rmw_wait() will wake immediately.
7f31f7e to
a4248da
Compare
@wjwwood Done. |
Resolves #354
Passing a max integer value to
rmw_wait()was leading to integer overflow in the rmw layer causing a quick timeout. Instead, passNULLto block in the case "block until ready".Also fixed another small bug in
rcl_actionfound along the way.Big thanks to @sloretz for helping find the issue!