@@ -50,10 +50,15 @@ OFCondition *_queueCondition; volatile int _doneCount; OFCondition *_countCondition; } +/*! + * The size of the thread pool. + */ +@property (readonly, nonatomic) size_t size; + /*! * @brief Returns a new thread pool with one thread for each core in the system. * * @warning If for some reason the number of cores in the system could not be * determined, the pool will only have one thread! @@ -102,15 +107,8 @@ /*! * @brief Waits until all jobs are done. */ - (void)waitUntilDone; - -/*! - * @brief Returns the size of the thread pool. - * - * @return The size of the thread pool - */ -- (size_t)size; @end OF_ASSUME_NONNULL_END