Oolite 1.91.0.7668-250429-8542c40
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
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 200 of file OOAsyncWorkManager.m.

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

References OOLogGenericSubclassResponsibility.

Referenced by OOTextureGenerator::enqueue, and OOCacheManager(Private)::write.

+ Here is the caller graph for this function:

◆ allocWithZone:

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

Definition at line 166 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

References nil, and sSingleton.

◆ completePendingTasks

- (void) completePendingTasks

Reimplemented in OOAsyncWorkManagerInternal.

Definition at line 207 of file OOAsyncWorkManager.m.

References completePendingTasks, and OOLogGenericSubclassResponsibility.

Referenced by completePendingTasks.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dealloc

- (void) dealloc
implementation

Reimplemented in OOOperationQueueAsyncWorkManager.

Definition at line 177 of file OOAsyncWorkManager.m.

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

References dealloc.

Referenced by dealloc, and OOOperationQueueAsyncWorkManager::dealloc.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ release

- (oneway void) release
implementation

Definition at line 184 of file OOAsyncWorkManager.m.

185{}

References release.

Referenced by OOAsyncWorkManagerInternal::init, OOOperationQueueAsyncWorkManager::init, and release.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ retain

- (id) retain
implementation

Definition at line 188 of file OOAsyncWorkManager.m.

189{
190 return self;
191}

References retain.

Referenced by retain.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ retainCount

- (NSUInteger) retainCount
implementation

Definition at line 194 of file OOAsyncWorkManager.m.

195{
196 return UINT_MAX;
197}

References retainCount.

Referenced by retainCount.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sharedAsyncWorkManager

+ (OOAsyncWorkManager *) sharedAsyncWorkManager

Definition at line 146 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)

References InitAsyncWorkManager(), nil, sharedAsyncWorkManager, and sSingleton.

Referenced by OOTextureGenerator::enqueue, OOCacheManager::finishOngoingFlush, OOTextureLoader::getResult:format:originalWidth:originalHeight:, sharedAsyncWorkManager, and OOCacheManager(Private)::write.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ waitForTaskToComplete:

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

Reimplemented in OOAsyncWorkManagerInternal.

Definition at line 213 of file OOAsyncWorkManager.m.

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

References OOLogGenericSubclassResponsibility.

Referenced by OOCacheManager::finishOngoingFlush, and OOTextureLoader::getResult:format:originalWidth:originalHeight:.

+ Here is the caller graph for this function:

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