19 OF_ASSUME_NONNULL_BEGIN
32 @class OFList OF_GENERIC(ObjectType);
35 @class OFThreadPoolJob;
53 volatile int _doneCount;
65 + (instancetype)threadPool;
76 + (instancetype)threadPoolWithSize: (
size_t)size;
88 - initWithSize: (
size_t)size;
98 - (void)dispatchWithTarget: (
id)target
99 selector: (
SEL)selector
100 object: (nullable
id)object;
102 #ifdef OF_HAVE_BLOCKS
114 - (void)waitUntilDone;
124 OF_ASSUME_NONNULL_END
A class providing a pool of reusable threads.
Definition: OFThreadPool.h:45
The root class for all other classes inside ObjFW.
Definition: OFObject.h:364
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:46
void(^ of_thread_pool_block_t)(void)
A block for a job which should be executed in a thread pool.
Definition: OFThreadPool.h:27
A class which provides easy to use double-linked lists.
Definition: OFList.h:53
A class implementing a condition variable for thread synchronization.
Definition: OFCondition.h:28