romainfrancois commented on a change in pull request #9615:
URL: https://github.com/apache/arrow/pull/9615#discussion_r628184405



##########
File path: r/src/r_to_arrow.cpp
##########
@@ -46,6 +50,41 @@ using internal::MakeConverter;
 
 namespace r {
 
+class RTasks {
+ public:
+  using Task = std::function<Status()>;
+
+  RTasks()
+      : parallel_tasks(arrow::internal::TaskGroup::MakeThreaded(
+            arrow::internal::GetCpuThreadPool())) {}
+
+  Status Finish() {

Review comment:
       I added a comment. I don't understand the implementation of the threaded 
task pool enough at this point to do better than this at this point. We'll see 
how things evolve as we perhaps use `RTasks` in other places. 




-- 
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to