westonpace commented on code in PR #40722:
URL: https://github.com/apache/arrow/pull/40722#discussion_r1546994167
##########
cpp/src/arrow/util/async_util.h:
##########
@@ -277,6 +278,8 @@ class ARROW_EXPORT ThrottledAsyncTaskScheduler : public
AsyncTaskScheduler {
/// Allows task to be submitted again. If there is a max_concurrent_cost
limit then
/// it will still apply.
virtual void Resume() = 0;
+ /// Return the number of tasks queued but not yet submitted
+ virtual std::size_t QueueSize() = 0;
Review Comment:
The implementation uses a `std::mutex` and so I'd have to mark the mutex
mutable right? Which would you prefer? "mutable mutex" or "non-const
accessor"? I don't have strong preference.
--
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]