Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
Signed-off-by: Nicola Loi <[email protected]>
  • Loading branch information
nicolaloi committed Dec 6, 2024
1 parent 487b26c commit 6a3cbc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rosbag2_transport/src/rosbag2_transport/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,10 @@ class PlayerImpl
void print_progress_bar_help_str() const;
// Update progress bar taking into account the update rate set by the user.
// The function should be called for regular progress bar updates, for example
// after the recurrent message publishing.
// Call update_progress_bar_check_rate function only if the function cannot run
// contemporaneously in multiple threads, i.e. function calls are already protected by a mutex:
// to avoid locking overhead no new mutex inside the function is directly protecting
// after the recurrent publishing of the messages.
// Call update_progress_bar_check_rate function only where it cannot run
// contemporaneously in multiple threads, i.e. function calls are already protected by a mutex.
// To avoid locking overhead no new mutex inside the function is directly protecting
// the access to the class attribute progress_bar_last_time_updated_.
void update_progress_bar_check_rate(
const rcutils_time_point_value_t & timestamp,
Expand Down

0 comments on commit 6a3cbc3

Please sign in to comment.