fix :error

This commit is contained in:
tqcq 2024-10-26 12:40:45 +00:00
parent 6c754232e9
commit d1e9def682

View File

@ -375,7 +375,7 @@ find_row_mask(std::vector<set_t> &sets,
if (my_end_pos > g_base_pos.load(std::memory_order_relaxed) + step_count) { if (my_end_pos > g_base_pos.load(std::memory_order_relaxed) + step_count) {
std::lock_guard<std::mutex> _(lock); std::lock_guard<std::mutex> _(lock);
if (my_end_pos > g_base_pos + step_count) { if (my_end_pos > g_base_pos + step_count) {
g_base_pos = my_end_pos; g_base_pos = my_end_pos - step_count;
row_mask = cur_mask; row_mask = cur_mask;
} }
} else if (g_base_pos.load(std::memory_order_relaxed) <= my_end_pos) { } else if (g_base_pos.load(std::memory_order_relaxed) <= my_end_pos) {