Oolite
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 42 of file OOAsyncWorkManager.h.

Method Documentation

◆ addTask:priority:

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

Reimplemented in OOOperationQueueAsyncWorkManager.

Definition at line 177 of file OOAsyncWorkManager.m.

177 :(id<OOAsyncWorkTask>)task priority:(OOAsyncWorkPriority)priority
178{
180 return NO;
181}
OOAsyncWorkPriority
#define OOLogGenericSubclassResponsibility()
Definition OOLogging.h:141

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 148 of file OOAsyncWorkManager.m.

148 :(NSZone*)inZone
149{
150 if (sSingleton == nil) {
151 sSingleton = [super allocWithZone:inZone];
152 return sSingleton;
153 }
154 return nil;
155}
static OONullTexture * sSingleton
return nil

References nil, and sSingleton.

◆ completePendingTasks

- (void) completePendingTasks

Reimplemented in OOAsyncWorkManagerInternal.

Definition at line 183 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 157 of file OOAsyncWorkManager.m.

158{
159 abort();
160 [super dealloc];
161}

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 163 of file OOAsyncWorkManager.m.

164{
165}

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 167 of file OOAsyncWorkManager.m.

168{
169 return self;
170}

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 172 of file OOAsyncWorkManager.m.

173{
174 return UINT_MAX;
175}

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 130 of file OOAsyncWorkManager.m.

131{
132#if USE_PTHREAD_ONCE
133 static pthread_once_t once = PTHREAD_ONCE_INIT;
134 pthread_once(&once, InitAsyncWorkManager);
135 NSAssert(sSingleton != nil, @"Async Work Manager init failed");
136#else
137 [sInitLock lock];
138 if (sSingleton == nil) {
140 NSAssert(sSingleton != nil, @"Async Work Manager init failed");
141 }
142 [sInitLock unlock];
143#endif
144
145 return sSingleton;
146}
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 188 of file OOAsyncWorkManager.m.

188 :(id<OOAsyncWorkTask>)task
189{
191 [NSException raise:NSInternalInconsistencyException format:@"%s called.", __PRETTY_FUNCTION__];
192}

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: