Oolite 1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
OOAsyncWorkManager Class Reference

#include <OOAsyncWorkManager.h>

+ Inheritance diagram for OOAsyncWorkManager:
+ Collaboration diagram for OOAsyncWorkManager:

Instance Methods

(BOOL) - addTask:priority:
 
(void) - completePendingTasks
 
(void) - waitForTaskToComplete:
 
(void) - dealloc [implementation]
 
(oneway void) - release [implementation]
 
(id) - retain [implementation]
 
(NSUInteger) - retainCount [implementation]
 

Class Methods

(OOAsyncWorkManager *) + sharedAsyncWorkManager
 
(id) + allocWithZone: [implementation]
 

Detailed Description

Definition at line 46 of file OOAsyncWorkManager.h.

Method Documentation

◆ addTask:priority:

- (BOOL) addTask: (id<OOAsyncWorkTask>) task
priority: (OOAsyncWorkPriority) priority 

Reimplemented in OOOperationQueueAsyncWorkManager.

Definition at line 88 of file OOAsyncWorkManager.m.

200 :(id<OOAsyncWorkTask>)task priority:(OOAsyncWorkPriority)priority
201{
203 return NO;
204}
OOAsyncWorkPriority
#define OOLogGenericSubclassResponsibility()
Definition OOLogging.h:129

◆ allocWithZone:

+ (id) allocWithZone: (NSZone *) inZone
implementation

Definition at line 88 of file OOAsyncWorkManager.m.

166 :(NSZone *)inZone
167{
168 if (sSingleton == nil)
169 {
170 sSingleton = [super allocWithZone:inZone];
171 return sSingleton;
172 }
173 return nil;
174}
static OODebugMonitor * sSingleton
return nil

◆ completePendingTasks

- (void) completePendingTasks

Reimplemented in OOAsyncWorkManagerInternal.

Definition at line 88 of file OOAsyncWorkManager.m.

◆ dealloc

- (void) dealloc
implementation

Reimplemented in OOOperationQueueAsyncWorkManager.

Definition at line 88 of file OOAsyncWorkManager.m.

178{
179 abort();
180 [super dealloc];
181}

◆ release

- (oneway void) release
implementation

Definition at line 88 of file OOAsyncWorkManager.m.

185{}

◆ retain

- (id) retain
implementation

Definition at line 88 of file OOAsyncWorkManager.m.

189{
190 return self;
191}

◆ retainCount

- (NSUInteger) retainCount
implementation

Definition at line 88 of file OOAsyncWorkManager.m.

195{
196 return UINT_MAX;
197}

◆ sharedAsyncWorkManager

+ (OOAsyncWorkManager *) sharedAsyncWorkManager

Definition at line 88 of file OOAsyncWorkManager.m.

147{
148#if USE_PTHREAD_ONCE
149 static pthread_once_t once = PTHREAD_ONCE_INIT;
150 pthread_once(&once, InitAsyncWorkManager);
151 NSAssert(sSingleton != nil, @"Async Work Manager init failed");
152#else
153 [sInitLock lock];
154 if (sSingleton == nil)
155 {
157 NSAssert(sSingleton != nil, @"Async Work Manager init failed");
158 }
159 [sInitLock unlock];
160#endif
161
162 return sSingleton;
163}
static void InitAsyncWorkManager(void)

◆ waitForTaskToComplete:

- (void) waitForTaskToComplete: (id<OOAsyncWorkTask>) task

Reimplemented in OOAsyncWorkManagerInternal.

Definition at line 88 of file OOAsyncWorkManager.m.

213 :(id<OOAsyncWorkTask>)task
214{
216 [NSException raise:NSInternalInconsistencyException format:@"%s called.", __PRETTY_FUNCTION__];
217}

The documentation for this class was generated from the following files: