feat: update
This commit is contained in:
parent
7262c59d5a
commit
f5f16fcac7
@ -370,10 +370,10 @@ find_row_mask(std::vector<set_t> &sets,
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < step && cur_mask < last_mask; ++i) {
|
||||
if (!found.load(std::memory_order_relaxed) && resolve(cur_mask)) {
|
||||
std::lock_guard<std::mutex> _(lock);
|
||||
for (int i = 0; i < step && cur_mask < last_mask && !found.load(std::memory_order_relaxed); ++i) {
|
||||
if (resolve(cur_mask)) {
|
||||
if (!found.exchange(true)) {
|
||||
std::lock_guard<std::mutex> _(lock);
|
||||
row_mask = cur_mask;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user