13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#import "OFObject.h"
#ifdef OF_HAVE_BLOCKS
typedef void (^of_thread_pool_block_t)(id object);
#endif
@class OFMutableArray;
@class OFList;
@class OFCondition;
@class OFThreadPoolJob;
|
|
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#import "OFObject.h"
#ifdef OF_HAVE_BLOCKS
typedef void (^of_thread_pool_block_t)(void);
#endif
@class OFMutableArray;
@class OFList;
@class OFCondition;
@class OFThreadPoolJob;
|
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
#ifdef OF_HAVE_BLOCKS
/**
* \brief Executes the specified block as soon as a thread is ready.
*
* \param block The block to execute
*/
- (void)dispatchWithBlock: (of_thread_pool_block_t)block;
/**
* \brief Executes the specified block as soon as a thread is ready.
*
* \param block The block to execute
* \param object The object to pass to the block
*/
- (void)dispatchWithBlock: (of_thread_pool_block_t)block
object: (id)object;
#endif
/**
* \brief Waits until all jobs are done.
*/
- (void)waitUntilDone;
|
<
<
<
<
<
<
<
<
<
|
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
#ifdef OF_HAVE_BLOCKS
/**
* \brief Executes the specified block as soon as a thread is ready.
*
* \param block The block to execute
*/
- (void)dispatchWithBlock: (of_thread_pool_block_t)block;
#endif
/**
* \brief Waits until all jobs are done.
*/
- (void)waitUntilDone;
|