save-buffer commented on code in PR #13143:
URL: https://github.com/apache/arrow/pull/13143#discussion_r892950355
##########
cpp/src/arrow/compute/exec/exec_plan.h:
##########
@@ -61,6 +61,18 @@ class ARROW_EXPORT ExecPlan : public
std::enable_shared_from_this<ExecPlan> {
return out;
}
+ size_t GetThreadIndex();
+ size_t thread_capacity() const;
+
+ Status AddFuture(Future<> fut);
+ Status ScheduleTask(std::function<Status()> fn);
+ Status ScheduleTask(std::function<Status(size_t)> fn);
+ // The need to register a task group before use will be removed after we
rewrite the
+ // scheduler.
+ int RegisterTaskGroup(std::function<Status(size_t, int64_t)> task,
+ std::function<Status(size_t)> on_finished);
+ Status StartTaskGroup(int task_group_id, int64_t num_tasks);
+
Review Comment:
Added some comments.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]