diff --git a/src/core/operator/task/iterative_length_task.cpp b/src/core/operator/task/iterative_length_task.cpp index 828d373..879e341 100644 --- a/src/core/operator/task/iterative_length_task.cpp +++ b/src/core/operator/task/iterative_length_task.cpp @@ -112,8 +112,7 @@ bool IterativeLengthTask::SetTaskRange() { if (next[i].any()) { next[i] &= ~seen[i]; seen[i] |= next[i]; - std::lock_guard lock(state->change_lock); - change = true; + change |= next[i].any(); } } has_tasks = SetTaskRange();