Skip to content

Commit

Permalink
add a clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wjwwood committed Mar 20, 2015
1 parent fd20833 commit 30d7eb2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class MultiThreadedExecutor : public executor::Executor
std::vector<std::thread> threads;
{
std::lock_guard<std::mutex> wait_lock(wait_mutex_);
size_t thread_id_ = 1;
size_t thread_id_ = 1; // Use a _ suffix to avoid shadowing `rclcpp::thread_id`
for (size_t i = number_of_threads_; i > 0; --i)
{
std::this_thread::sleep_for(std::chrono::milliseconds(100));
Expand Down

0 comments on commit 30d7eb2

Please sign in to comment.