Skip to content

Commit

Permalink
[oap] Expose Task::numThreads()
Browse files Browse the repository at this point in the history
  • Loading branch information
zhztheplayer authored and glutenperfbot committed Oct 7, 2024
1 parent 562c42f commit fa9d7ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions velox/exec/Task.h
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,10 @@ class Task : public std::enable_shared_from_this<Task> {
terminate(TaskState::kFinished).wait();
}

int32_t numThreads() {
return numThreads_;
}

private:
// Hook of system-wide running task list.
struct TaskListEntry {
Expand Down

0 comments on commit fa9d7ea

Please sign in to comment.