setVertexArrivals use tag_group_lock
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
45a8a1bcc0
commit
774c3c68f1
|
|
@ -647,7 +647,6 @@ protected:
|
|||
// Capacity of tag_groups_.
|
||||
TagGroupIndex tag_group_capacity_;
|
||||
std::mutex tag_group_lock_;
|
||||
std::mutex tag_group_ref_count_lock_;
|
||||
// Latches data outputs to queue on the next search pass.
|
||||
VertexSet *pending_latch_outputs_;
|
||||
std::mutex pending_latch_outputs_lock_;
|
||||
|
|
|
|||
|
|
@ -2783,7 +2783,7 @@ Search::setVertexArrivals(Vertex *vertex,
|
|||
}
|
||||
}
|
||||
if (tag_group != prev_tag_group) {
|
||||
LockGuard lock(tag_group_ref_count_lock_);
|
||||
LockGuard lock(tag_group_lock_);
|
||||
tag_group->incrRefCount();
|
||||
if (prev_tag_group) {
|
||||
prev_tag_group->decrRefCount();
|
||||
|
|
|
|||
Loading…
Reference in New Issue