@@ -723,24 +723,24 @@ FollyExecutorPool::~FollyExecutorPool() {
723723 futurePool.reset ();
724724}
725725
726- size_t FollyExecutorPool::getNumWorkersStat () {
726+ size_t FollyExecutorPool::getNumWorkersStat () const {
727727 return readerPool->numThreads () + writerPool->numThreads () +
728728 auxPool->numThreads () + nonIoPool->numThreads ();
729729}
730730
731- size_t FollyExecutorPool::getNumReaders () {
731+ size_t FollyExecutorPool::getNumReaders () const {
732732 return calcNumReaders (ThreadPoolConfig::ThreadCount (maxReaders));
733733}
734734
735- size_t FollyExecutorPool::getNumWriters () {
735+ size_t FollyExecutorPool::getNumWriters () const {
736736 return calcNumWriters (ThreadPoolConfig::ThreadCount (maxWriters));
737737}
738738
739- size_t FollyExecutorPool::getNumAuxIO () {
739+ size_t FollyExecutorPool::getNumAuxIO () const {
740740 return auxPool->getPoolStats ().threadCount ;
741741}
742742
743- size_t FollyExecutorPool::getNumNonIO () {
743+ size_t FollyExecutorPool::getNumNonIO () const {
744744 return nonIoPool->getPoolStats ().threadCount ;
745745}
746746
@@ -764,14 +764,14 @@ void FollyExecutorPool::setNumNonIO(uint16_t v) {
764764 nonIoPool->setNumThreads (maxNonIO);
765765}
766766
767- size_t FollyExecutorPool::getNumSleepers () {
767+ size_t FollyExecutorPool::getNumSleepers () const {
768768 return readerPool->getPoolStats ().idleThreadCount +
769769 writerPool->getPoolStats ().idleThreadCount +
770770 auxPool->getPoolStats ().idleThreadCount +
771771 nonIoPool->getPoolStats ().idleThreadCount ;
772772}
773773
774- size_t FollyExecutorPool::getNumReadyTasks () {
774+ size_t FollyExecutorPool::getNumReadyTasks () const {
775775 return readerPool->getPendingTaskCount () +
776776 writerPool->getPendingTaskCount () + auxPool->getPendingTaskCount () +
777777 nonIoPool->getPendingTaskCount ();
0 commit comments