56 if (indexInRow >= maxElemsPerBucket || !
engaged()) {
60 auto& out = mOutput[
row];
61 while (out.lock.test_and_set(std::memory_order_acquire)) {
64 if (out.data.size() <= indexInRow) {
65 out.
data.resize(indexInRow + 100);
67 out.data[indexInRow].labels = std::move(mClusterLabels);
68 out.lock.clear(std::memory_order_release);