feat: update
This commit is contained in:
parent
6374c128af
commit
9b95b11f4d
@ -360,15 +360,20 @@ find_row_mask(std::vector<set_t> &sets,
|
||||
}
|
||||
step_count -= std::min(step_count, step);
|
||||
|
||||
if (my_pos > g_base_pos) {
|
||||
std::lock_guard<std::mutex> _(lock);
|
||||
if (my_pos > g_base_pos) {
|
||||
g_base_pos = my_pos;
|
||||
row_mask = cur_mask;
|
||||
}
|
||||
} else if (g_base_pos <= g_cur_pos) {
|
||||
std::lock_guard<std::mutex> _(lock);
|
||||
if (g_base_pos < g_cur_pos) {
|
||||
cur_mask = row_mask;
|
||||
my_pos = g_base_pos;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < step && cur_mask < last_mask && !found.load(std::memory_order_relaxed); ++i) {
|
||||
if (resolve(cur_mask)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user