You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voidwaitForTasks() {
for (int i = 0; i < thread_numb; ++i) {
threads[i].waitTasksDone();
}
for (int i = 0; i < thread_numb; ++i) {
threads[i].cleanWaitingFlag();
}
}
如果能执行到worker中的 if (enable_steal_tasks) 的代码块,意味着waiting=false,但这又意味着全部任务执行完了,这个时候从其他线程的工作队列拿任务的意义何在?不是全部任务已经没了吗?求懂哥解释
The text was updated successfully, but these errors were encountered: