Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
  • Loading branch information
ivanpauno committed Jan 15, 2021
1 parent 6883d9a commit 8a49e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclcpp/src/rclcpp/executors/multi_threaded_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ MultiThreadedExecutor::run(size_t)
// DON'T DELETE THE scheduled_timers_mutex_ AND REPLACE IT WITH THE wait_mutex_ here.
// Now, this mutex will only compete with ONE worker thread that's is trying to insert
// a timer.
// (and also, N other worker threads also trying to delete a timer).
// (and also, N other worker threads trying to delete a timer).
// If the wait_mutex_ is used here, this will compete with all the other worker threads!!!
// If we're waiting too long too remove the scheduled timer, maybe we are discarding a timer
// execution that we shouldn't!
Expand Down

0 comments on commit 8a49e36

Please sign in to comment.