michalursa commented on code in PR #13493:
URL: https://github.com/apache/arrow/pull/13493#discussion_r919418542
##########
cpp/src/arrow/compute/exec/partition_util.h:
##########
@@ -118,6 +118,43 @@ class PartitionLocks {
/// \brief Release a partition so that other threads can work on it
void ReleasePartitionLock(int prtn_id);
+ template <typename IS_PRTN_EMPTY_FN, typename PROCESS_PRTN_FN>
+ Status ForEachPartition(size_t thread_id, int* temp_unprocessed_prtns,
Review Comment:
I added a comment in the code.
--
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]