Differences From Artifact [881b26bdcb]:
- File src/OFThreadPool.h — part of check-in [0509d7a844] at 2019-01-03 19:13:03 on branch trunk — Update copyright (user: js, size: 3186) [annotate] [blame] [check-ins using]
To Artifact [a9d1ed6153]:
- File
src/OFThreadPool.h
— part of check-in
[496695d778]
at
2019-09-29 19:35:38
on branch trunk
— Either restrict subclassing or reserve ivar space
This allows ABI stability with the fragile ABI. (user: js, size: 3212) [annotate] [blame] [check-ins using] [more...]
| ︙ | ︙ | |||
37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
* @class OFThreadPool OFThreadPool.h ObjFW/OFThreadPool.h
*
* @brief A class providing a pool of reusable threads.
*
* @note When the thread pool is released, all threads will terminate after
* they finish the job they are currently processing.
*/
@interface OFThreadPool: OFObject
{
size_t _size;
OFMutableArray *_threads;
volatile int _count;
#ifdef OF_THREAD_POOL_M
@public
| > | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
* @class OFThreadPool OFThreadPool.h ObjFW/OFThreadPool.h
*
* @brief A class providing a pool of reusable threads.
*
* @note When the thread pool is released, all threads will terminate after
* they finish the job they are currently processing.
*/
OF_SUBCLASSING_RESTRICTED
@interface OFThreadPool: OFObject
{
size_t _size;
OFMutableArray *_threads;
volatile int _count;
#ifdef OF_THREAD_POOL_M
@public
|
| ︙ | ︙ |