Under what circumstances is a task still in the running state after one loop in do_work ??? #34159
Unanswered
skadilover
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
···
void TaskScheduler::_do_work(size_t index) {
const auto& marker = _markers[index];
while (marker) {
auto task = _task_queue->take(index);
if (!task) {
continue;
}
// This condition is very strange and hard to understand
if (task->is_pipelineX() && task->is_running()) {
static_cast(_task_queue->push_back(task, index));
continue;
}
。。。。
···
hey guys, Can anyone help answer this question?
Beta Was this translation helpful? Give feedback.
All reactions