Skip to content

Commit f1e7ea5

Browse files
committed
remove redundant calls to set spinning false
1 parent 2b34235 commit f1e7ea5

3 files changed

Lines changed: 0 additions & 4 deletions

File tree

rclcpp/src/rclcpp/executor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ Executor::spin_some()
118118
while ((any_exec = get_next_executable(std::chrono::milliseconds::zero())) && spinning.load()) {
119119
execute_any_executable(any_exec);
120120
}
121-
spinning.store(false);
122121
}
123122

124123
void
@@ -132,7 +131,6 @@ Executor::spin_once(std::chrono::nanoseconds timeout)
132131
if (any_exec) {
133132
execute_any_executable(any_exec);
134133
}
135-
spinning.store(false);
136134
}
137135

138136
void

rclcpp/src/rclcpp/executors/multi_threaded_executor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ MultiThreadedExecutor::spin()
5555
for (auto & thread : threads) {
5656
thread.join();
5757
}
58-
spinning.store(false);
5958
}
6059

6160
size_t

rclcpp/src/rclcpp/executors/single_threaded_executor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,4 @@ SingleThreadedExecutor::spin()
3636
auto any_exec = get_next_executable();
3737
execute_any_executable(any_exec);
3838
}
39-
spinning.store(false);
4039
}

0 commit comments

Comments
 (0)