Skip to content

Commit 27cc9ac

Browse files
author
Janosch Machowinski
committed
feat: Added new CBGExecutor
Signed-off-by: Janosch Machowinski <[email protected]> # Conflicts: # rclcpp/include/rclcpp/executor.hpp # rclcpp/src/rclcpp/executor.cpp # rclcpp/test/rclcpp/executors/test_executors.cpp
1 parent 261a69b commit 27cc9ac

File tree

9 files changed

+3164
-50
lines changed

9 files changed

+3164
-50
lines changed

rclcpp/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ set(${PROJECT_NAME}_SRCS
6363
src/rclcpp/executable_list.cpp
6464
src/rclcpp/executor.cpp
6565
src/rclcpp/executors.cpp
66+
src/rclcpp/executors/cbg_executor.cpp
67+
src/rclcpp/executors/detail/weak_executable_with_rcl_handle_cache.cpp
6668
src/rclcpp/executors/executor_entities_collection.cpp
6769
src/rclcpp/executors/executor_entities_collector.cpp
6870
src/rclcpp/executors/executor_notify_waitable.cpp

rclcpp/include/rclcpp/executor.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ class Executor
485485
RCLCPP_PUBLIC
486486
static void
487487
execute_subscription(
488-
rclcpp::SubscriptionBase::SharedPtr subscription);
488+
const rclcpp::SubscriptionBase::SharedPtr &subscription);
489489

490490
/// Run timer executable.
491491
/**
@@ -503,7 +503,7 @@ class Executor
503503
*/
504504
RCLCPP_PUBLIC
505505
static void
506-
execute_service(rclcpp::ServiceBase::SharedPtr service);
506+
execute_service(const rclcpp::ServiceBase::SharedPtr &service);
507507

508508
/// Run service client executable.
509509
/**
@@ -512,7 +512,7 @@ class Executor
512512
*/
513513
RCLCPP_PUBLIC
514514
static void
515-
execute_client(rclcpp::ClientBase::SharedPtr client);
515+
execute_client(const rclcpp::ClientBase::SharedPtr &client);
516516

517517
protected:
518518
/// Block until more work becomes avilable or timeout is reached.

0 commit comments

Comments
 (0)