33#ifndef OO_HAVE_NSOPERATION
35 #define OO_HAVE_NSOPERATION (1)
41 #define OO_HAVE_NSOPERATION (0)
45#ifndef OO_ALLOW_NSOPERATION
46#define OO_ALLOW_NSOPERATION 1
50#if OO_ALLOW_NSOPERATION
51#if !OO_HAVE_NSOPERATION
55#define OONSOperationQueue id
56#define OONSOperation id
57#define OONSInvocationOperation id
68 return NSClassFromString(
@"NSOperationQueue");
73 return NSClassFromString(
@"NSOperation");
79 return NSClassFromString(
@"NSInvocationOperation");
83@class NSOperationQueue;
85@class NSInvocationOperation;
117- (void) addDependency:(NSOperation *)op;
118- (void) removeDependency:(NSOperation *)op;
123- (void) setQueuePriority:(NSInteger)p;
130- (id) initWithTarget:(
id)target selector:(
SEL)sel object:(
id)arg;
131- (id) initWithInvocation:(NSInvocation *)inv;
142- (void) addOperation:(NSOperation *)op;
147- (void) setMaxConcurrentOperationCount:(NSInteger)cnt;
149- (void) setSuspended:(BOOL)b;
160#define OONSOperationQueue NSOperationQueue *
161#define OONSOperation NSOperation *
162#define OONSInvocationOperation NSInvocationOperation *
164#define OONSOperationQueueClass() NSOperationQueue
165#define OONSOperationClass() NSOperation
166#define OONSInvocationOperationClass() NSInvocationOperation
@ OONSOperationQueuePriorityVeryHigh
@ OONSOperationQueuePriorityLow
@ OONSOperationQueuePriorityHigh
@ OONSOperationQueuePriorityNormal
@ OONSOperationQueuePriorityVeryLow
OOINLINE Class OONSOperationQueueClass() PURE_FUNC
OOINLINE Class OONSOperationClass() PURE_FUNC
OOINLINE Class OONSInvocationOperationClass() PURE_FUNC
int main(int argc, const char *argv[])
NSInvocation * invocation()
NSInteger queuePriority()
void waitUntilAllOperationsAreFinished()
NSInteger maxConcurrentOperationCount()
void cancelAllOperations()