@@ -128,11 +128,11 @@ @interface OFThreadPoolThread: OFThread { OFList *_queue; OFCondition *_queueCondition, *_countCondition; @public - volatile BOOL _terminate; + volatile bool _terminate; volatile int *_doneCount; } + (instancetype)threadWithThreadPool: (OFThreadPool*)threadPool; - initWithThreadPool: (OFThreadPool*)threadPool; @@ -305,11 +305,11 @@ @try { OFEnumerator *enumerator = [_threads objectEnumerator]; OFThreadPoolThread *thread; while ((thread = [enumerator nextObject]) != nil) - thread->_terminate = YES; + thread->_terminate = true; } @finally { [_countCondition unlock]; } [_queueCondition broadcast];