File tree 7 files changed +11
-11
lines changed
7 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class ActionTestNode : public ActionNode
35
35
36
36
private:
37
37
int time_;
38
- std::atomic_bool stop_loop_;
38
+ std::atomic_bool stop_loop_ = false ;
39
39
};
40
40
41
41
int main ()
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ class ThreadedAction : public ActionNodeBase
132
132
133
133
private:
134
134
std::exception_ptr exptr_;
135
- std::atomic_bool halt_requested_;
135
+ std::atomic_bool halt_requested_ = false ;
136
136
std::future<void > thread_handle_;
137
137
std::mutex mutex_;
138
138
};
@@ -183,7 +183,7 @@ class StatefulActionNode : public ActionNodeBase
183
183
void halt () override final ;
184
184
185
185
private:
186
- std::atomic_bool halt_requested_;
186
+ std::atomic_bool halt_requested_ = false ;
187
187
};
188
188
189
189
/* *
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class SleepNode : public StatefulActionNode
38
38
TimerQueue<> timer_;
39
39
uint64_t timer_id_;
40
40
41
- std::atomic_bool timer_waiting_;
41
+ std::atomic_bool timer_waiting_ = false ;
42
42
std::mutex delay_mutex_;
43
43
};
44
44
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ class TestNode : public BT::StatefulActionNode
88
88
TestNodeConfig _test_config;
89
89
ScriptFunction _executor;
90
90
TimerQueue<> _timer;
91
- std::atomic_bool _completed;
91
+ std::atomic_bool _completed = false ;
92
92
};
93
93
94
94
} // namespace BT
Original file line number Diff line number Diff line change @@ -56,11 +56,11 @@ class DelayNode : public DecoratorNode
56
56
57
57
virtual BT::NodeStatus tick () override ;
58
58
59
- bool delay_started_;
60
- std::atomic_bool delay_complete_;
61
- bool delay_aborted_;
59
+ bool delay_started_ = false ;
60
+ std::atomic_bool delay_complete_ = false ;
61
+ bool delay_aborted_ = false ;
62
62
unsigned msec_;
63
- bool read_parameter_from_ports_;
63
+ bool read_parameter_from_ports_ = false ;
64
64
std::mutex delay_mutex_;
65
65
};
66
66
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class TimeoutNode : public DecoratorNode
73
73
void halt () override ;
74
74
75
75
TimerQueue<> timer_;
76
- std::atomic_bool child_halted_;
76
+ std::atomic_bool child_halted_ = false ;
77
77
uint64_t timer_id_;
78
78
79
79
unsigned msec_;
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ struct Groot2Publisher::PImpl
73
73
74
74
std::string tree_xml;
75
75
76
- std::atomic_bool active_server;
76
+ std::atomic_bool active_server = false ;
77
77
std::thread server_thread;
78
78
79
79
std::mutex status_mutex;
You can’t perform that action at this time.
0 commit comments