MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / resetStatus

Method resetStatus

src/tree_node.cpp:283–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283void TreeNode::resetStatus()
284{
285 NodeStatus prev_status = NodeStatus::IDLE;
286 {
287 const std::unique_lock<std::mutex> lock(_p->state_mutex);
288 prev_status = _p->status;
289 _p->status = NodeStatus::IDLE;
290 }
291
292 if(prev_status != NodeStatus::IDLE)
293 {
294 _p->state_condition_variable.notify_all();
295 _p->state_change_signal.notify(std::chrono::high_resolution_clock::now(), *this,
296 prev_status, NodeStatus::IDLE);
297 }
298}
299
300NodeStatus TreeNode::status() const
301{

Callers 6

resetChildrenMethod · 0.80
haltChildMethod · 0.80
resetChildMethod · 0.80
executeTickMethod · 0.80
haltTreeMethod · 0.80
tickRootMethod · 0.80

Calls 1

notifyMethod · 0.45

Tested by

no test coverage detected