Index: src/OFThreadPool.h ================================================================== --- src/OFThreadPool.h +++ src/OFThreadPool.h @@ -117,16 +117,16 @@ - (void)dispatchWithBlock: (of_thread_pool_block_t)block object: (id)object; #endif /** - * \brief Waits until all threads have finished. + * \brief Waits until all jobs are done. */ -- (void)waitUntilFinished; +- (void)waitUntilDone; /** * \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 @@ -344,11 +344,11 @@ } @finally { [queueCondition unlock]; } } -- (void)waitUntilFinished +- (void)waitUntilDone { for (;;) { [countCondition lock]; @try { if (doneCount == count)