18 OF_ASSUME_NONNULL_BEGIN
30 @class OFList OF_GENERIC(ObjectType);
32 @class OFThreadPoolJob;
42 OF_SUBCLASSING_RESTRICTED
48 #ifdef OF_THREAD_POOL_M
53 volatile int _doneCount;
60 @property (readonly, nonatomic)
size_t size;
70 + (instancetype)threadPool;
78 + (instancetype)threadPoolWithSize: (
size_t)size;
87 - (instancetype)initWithSize: (
size_t)size OF_DESIGNATED_INITIALIZER;
97 - (void)dispatchWithTarget: (
id)target
98 selector: (
SEL)selector
99 object: (nullable
id)object;
101 #ifdef OF_HAVE_BLOCKS
113 - (void)waitUntilDone;
116 OF_ASSUME_NONNULL_END
void(^ of_thread_pool_block_t)(void)
A block for a job which should be executed in a thread pool.
Definition: OFThreadPool.h:26
A class implementing a condition variable for thread synchronization.
Definition: OFCondition.h:31
A class which provides easy to use double-linked lists.
Definition: OFList.h:55
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:44
The root class for all other classes inside ObjFW.
Definition: OFObject.h:520
A class providing a pool of reusable threads.
Definition: OFThreadPool.h:44