Check if we have already seen a task
| 358 | |
| 359 | // Check if we have already seen a task |
| 360 | inline bool HaveVisitedWorker(const Task *task) const { |
| 361 | return std::find(visited_tasks_.begin(), visited_tasks_.end(), task) != |
| 362 | visited_tasks_.end(); |
| 363 | } |
| 364 | |
| 365 | // Number of tasks that access this module |
| 366 | inline size_t num_active_tasks() const { return visited_tasks_.size(); } |