Index: src/OFThreadPool.h ================================================================== --- src/OFThreadPool.h +++ src/OFThreadPool.h @@ -120,6 +120,13 @@ /** * \brief Waits until all threads have finished. */ - (void)waitUntilFinished; + +/** + * \brief Returns the size of the thread pool. + * + * \return The size of the thread pool + */ +- (size_t)size; @end Index: src/OFThreadPool.m ================================================================== --- src/OFThreadPool.m +++ src/OFThreadPool.m @@ -381,6 +381,11 @@ { [self _dispatchJob: [OFThreadPoolJob jobWithBlock: block object: object]]; } #endif + +- (size_t)size +{ + return size; +} @end