Style
This commit is contained in:
parent
bc89a4c2f0
commit
99c81ce617
3 changed files with 4 additions and 3 deletions
|
@ -41,7 +41,8 @@ public:
|
|||
RCLCPP_MAKE_SHARED_DEFINITIONS(MultiThreadedExecutor);
|
||||
|
||||
MultiThreadedExecutor(memory_strategy::MemoryStrategy::SharedPtr ms =
|
||||
memory_strategy::create_default_strategy()) : executor::Executor(ms)
|
||||
memory_strategy::create_default_strategy())
|
||||
: executor::Executor(ms)
|
||||
{
|
||||
number_of_threads_ = std::thread::hardware_concurrency();
|
||||
if (number_of_threads_ == 0) {
|
||||
|
|
|
@ -42,7 +42,8 @@ public:
|
|||
RCLCPP_MAKE_SHARED_DEFINITIONS(SingleThreadedExecutor);
|
||||
|
||||
SingleThreadedExecutor(memory_strategy::MemoryStrategy::SharedPtr ms =
|
||||
memory_strategy::create_default_strategy()) : executor::Executor(ms) { }
|
||||
memory_strategy::create_default_strategy())
|
||||
: executor::Executor(ms) {}
|
||||
|
||||
virtual ~SingleThreadedExecutor() {}
|
||||
|
||||
|
|
|
@ -55,7 +55,6 @@ public:
|
|||
|
||||
void ** borrow_handles(HandleType type, size_t number_of_handles)
|
||||
{
|
||||
std::cout << "static borrow handles" << std::endl;
|
||||
switch (type) {
|
||||
case HandleType::subscriber_handle:
|
||||
if (number_of_handles > max_subscribers_) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue