-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-8299: [C++] Reusable "optional ParallelFor" function for option…
…al use of multithreading We often see code like ``` if (use_threads) { return ::arrow::internal::ParallelFor(n, Func); } else { for (size_t i = 0; i < n; ++i) { RETURN_NOT_OK(Func(i)); } return Status::OK(); ``` This patch adds a helper function to do this. Closes #6870 from liyafan82/fly_0408_pf Authored-by: liyafan82 <fan_li_ya@foxmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
- Loading branch information
Showing
4 changed files
with
24 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters