Differences From Artifact [5b323e884d]:
- File
src/OFThreadPool.m
— part of check-in
[0a55edad35]
at
2012-10-26 11:04:41
on branch trunk
— Split OFThread.m into multiple files.
It was time to finally have one file per class. (user: js, size: 6885) [annotate] [blame] [check-ins using]
To Artifact [588dc64cd5]:
- File src/OFThreadPool.m — part of check-in [4b637f8516] at 2012-12-26 14:10:34 on branch trunk — Add OFSystemInfo. (user: js, size: 6926) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
#include "config.h"
#import "OFThreadPool.h"
#import "OFArray.h"
#import "OFList.h"
#import "OFThread.h"
#import "OFCondition.h"
#import "autorelease.h"
@interface OFThreadPoolJob: OFObject
{
id target;
SEL selector;
| > | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
#include "config.h"
#import "OFThreadPool.h"
#import "OFArray.h"
#import "OFList.h"
#import "OFThread.h"
#import "OFCondition.h"
#import "OFSystemInfo.h"
#import "autorelease.h"
@interface OFThreadPoolJob: OFObject
{
id target;
SEL selector;
|
| ︙ | ︙ | |||
250 251 252 253 254 255 256 |
+ (instancetype)threadPoolWithSize: (size_t)size
{
return [[[self alloc] initWithSize: size] autorelease];
}
- init
{
| | | 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 |
+ (instancetype)threadPoolWithSize: (size_t)size
{
return [[[self alloc] initWithSize: size] autorelease];
}
- init
{
return [self initWithSize: [OFSystemInfo numberOfCPUs]];
}
- initWithSize: (size_t)size_
{
self = [super init];
@try {
|
| ︙ | ︙ |