Skip to content

Commit ca918ed

Browse files
committed
fix some warnings
1 parent d28abe6 commit ca918ed

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

include/behaviortree_cpp/actions/sleep_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class SleepNode : public StatefulActionNode
3838
TimerQueue<> timer_;
3939
uint64_t timer_id_;
4040

41-
bool timer_waiting_;
41+
std::atomic_bool timer_waiting_;
4242
std::mutex delay_mutex_;
4343
};
4444

include/behaviortree_cpp/decorators/timeout_node.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ class TimeoutNode : public DecoratorNode
7373
void halt() override;
7474

7575
TimerQueue<> timer_;
76-
std::atomic<bool> child_halted_;
76+
std::atomic_bool child_halted_;
7777
uint64_t timer_id_;
7878

7979
unsigned msec_;
8080
bool read_parameter_from_ports_;
81-
bool timeout_started_;
81+
std::atomic_bool timeout_started_ = false;
8282
std::mutex timeout_mutex_;
8383
};
8484

tests/gtest_wakeup.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class FastAction : public BT::ThreadedAction
1919
BT::NodeStatus tick() override
2020
{
2121
std::this_thread::sleep_for(std::chrono::milliseconds(10));
22-
emitWakeUpSignal();
2322
return BT::NodeStatus::SUCCESS;
2423
}
2524
};

0 commit comments

Comments
 (0)