Skip to content

Commit

Permalink
Merge pull request #12 from KaHIP/larsgottesbueren-balancer-race
Browse files Browse the repository at this point in the history
fix(greedy-balancer): race condition
  • Loading branch information
DanielSeemaier authored Oct 26, 2024
2 parents 233abd1 + 6c64a28 commit f685eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kaminpar-shm/refinement/balancer/greedy_balancer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ template <typename Graph> class GreedyBalancerImpl {
_graph->adjacent_nodes(u, [&](const NodeID v) {
if (!_marker.get(v) && _p_graph->block(v) == from) {
add_to_pq(from, v);
_marker.set(v);
}
_marker.set(v);
});
} else {
add_to_pq(from, u, u_weight, actual_relative_gain);
Expand Down

0 comments on commit f685eb4

Please sign in to comment.