File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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};
You can’t perform that action at this time.
0 commit comments