Skip to content

Commit b7e95f7

Browse files
Janosch MachowinskiJanosch Machowinski
authored andcommitted
chore: Minor cleanups
Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
1 parent 89ce3a2 commit b7e95f7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

rclcpp/include/rclcpp/executors/events_cbg_executor/events_cbg_executor.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class EventsCBGExecutor : public rclcpp::Executor
5252
* \param options common options for all executors
5353
* \param number_of_threads number of threads to have in the thread pool,
5454
* the default 0 will use the number of cpu cores found (minimum of 2)
55-
* \param yield_before_execute if true std::this_thread::yield() is called
5655
* \param timeout maximum time to wait
5756
*/
5857
RCLCPP_PUBLIC
@@ -246,8 +245,6 @@ class EventsCBGExecutor : public rclcpp::Executor
246245

247246
std::unique_ptr<cbg_executor::CBGScheduler> scheduler;
248247

249-
std::thread rcl_polling_thread;
250-
251248
struct CallbackGroupData
252249
{
253250
CallbackGroup::WeakPtr callback_group;

rclcpp/src/rclcpp/executors/events_cbg_executor/timer_manager.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,8 @@ class TimerQueue
491491

492492
class TimerManager
493493
{
494-
std::array<TimerQueue, 3> timer_queues;
494+
static constexpr size_t NUM_TYPES_OF_TIMERS = 3;
495+
std::array<TimerQueue, NUM_TYPES_OF_TIMERS> timer_queues;
495496

496497
public:
497498
explicit TimerManager(const rclcpp::Context::SharedPtr & context)

0 commit comments

Comments
 (0)