File tree 2 files changed +16
-12
lines changed
2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,16 @@ NodeStatus SkipUnlessUpdated::tick()
40
40
return status;
41
41
}
42
42
43
- auto entry = config ().blackboard ->getEntry (entry_key_);
44
- std::unique_lock lk (entry->entry_mutex );
45
- auto seq = static_cast <int64_t >(entry->sequence_id );
46
- if (seq == sequence_id_)
47
43
{
48
- return NodeStatus::SKIPPED;
44
+ auto entry = config ().blackboard ->getEntry (entry_key_);
45
+ std::unique_lock lk (entry->entry_mutex );
46
+ auto seq = static_cast <int64_t >(entry->sequence_id );
47
+ if (seq == sequence_id_)
48
+ {
49
+ return NodeStatus::SKIPPED;
50
+ }
51
+ sequence_id_ = seq;
49
52
}
50
- sequence_id_ = seq;
51
53
52
54
auto status = child ()->executeTick ();
53
55
still_executing_child_ = (status == NodeStatus::RUNNING);
Original file line number Diff line number Diff line change @@ -40,14 +40,16 @@ NodeStatus WaitValueUpdate::tick()
40
40
return status;
41
41
}
42
42
43
- auto entry = config ().blackboard ->getEntry (entry_key_);
44
- std::unique_lock lk (entry->entry_mutex );
45
- auto seq = static_cast <int64_t >(entry->sequence_id );
46
- if (seq == sequence_id_)
47
43
{
48
- return NodeStatus::RUNNING;
44
+ auto entry = config ().blackboard ->getEntry (entry_key_);
45
+ std::unique_lock lk (entry->entry_mutex );
46
+ auto seq = static_cast <int64_t >(entry->sequence_id );
47
+ if (seq == sequence_id_)
48
+ {
49
+ return NodeStatus::SKIPPED;
50
+ }
51
+ sequence_id_ = seq;
49
52
}
50
- sequence_id_ = seq;
51
53
52
54
auto status = child ()->executeTick ();
53
55
still_executing_child_ = (status == NodeStatus::RUNNING);
You can’t perform that action at this time.
0 commit comments