![]() |
Oolite 1.91.0.7669-250505-6b11f83
|
#include <OOAsyncQueue.h>
Instance Methods | |
(BOOL) | - enqueue: |
(id) | - dequeue |
(id) | - tryDequeue |
(BOOL) | - empty |
(unsigned) | - count |
(void) | - emptyQueue |
(id) | - init [implementation] |
(void) | - dealloc [implementation] |
(NSString *) | - description [implementation] |
(void) | - doEmptyQueueWithAcquiredLock [implementation] |
(id) | - doDequeAndUnlockWithAcquiredLock [implementation] |
(void) | - recycleElementWithAcquiredLock: [implementation] |
Private Attributes | |
NSConditionLock * | _lock |
struct OOAsyncQueueElement * | _head |
struct OOAsyncQueueElement * | _tail |
struct OOAsyncQueueElement * | _pool |
unsigned | _elemCount |
unsigned | _poolCount |
Definition at line 36 of file OOAsyncQueue.h.
- (unsigned) count |
Definition at line 231 of file OOAsyncQueue.m.
References _elemCount, and count.
Referenced by count.
|
implementation |
Definition at line 109 of file OOAsyncQueue.m.
References _elemCount, _pool, dealloc, doEmptyQueueWithAcquiredLock, OOAsyncQueueElement::next, and OOLogWARN.
Referenced by dealloc.
- (id) dequeue |
Definition at line 196 of file OOAsyncQueue.m.
References dequeue, and doDequeAndUnlockWithAcquiredLock.
Referenced by dequeue, OOAsyncLogger::loggerThread, and OOAsyncWorkManagerInternal::waitForTaskToComplete:.
|
implementation |
Definition at line 136 of file OOAsyncQueue.m.
References description.
Referenced by description.
|
implementation |
Provided by category OOAsyncQueue(OOPrivate).
Definition at line 274 of file OOAsyncQueue.m.
Referenced by dequeue, and tryDequeue.
|
implementation |
Provided by category OOAsyncQueue(OOPrivate).
Definition at line 251 of file OOAsyncQueue.m.
Referenced by dealloc, and emptyQueue.
- (BOOL) empty |
- (void) emptyQueue |
Definition at line 237 of file OOAsyncQueue.m.
References _elemCount, _head, _tail, doEmptyQueueWithAcquiredLock, and emptyQueue.
Referenced by emptyQueue.
- (BOOL) enqueue: | (id) | object |
Definition at line 143 of file OOAsyncQueue.m.
References _elemCount, _head, _pool, _poolCount, _tail, AllocElement(), EXPECT_NOT, FAIL, OOAsyncQueueElement::next, nil, and OOAsyncQueueElement::object.
Referenced by OOAsyncLogger::asyncLogMessage:, OOAsyncLogger::endLogging, OOAsyncLogger::flushLog, OOAsyncWorkManagerInternal::queueResult:, and OOAsyncLogger::startLogging.
|
implementation |
Definition at line 91 of file OOAsyncQueue.m.
References _lock, init, and nil.
Referenced by init.
|
implementation |
Provided by category OOAsyncQueue(OOPrivate).
Definition at line 309 of file OOAsyncQueue.m.
Referenced by OOAsyncQueue(OOPrivate)::doDequeAndUnlockWithAcquiredLock, and OOAsyncQueue(OOPrivate)::doEmptyQueueWithAcquiredLock.
- (id) tryDequeue |
Definition at line 203 of file OOAsyncQueue.m.
References _lock, doDequeAndUnlockWithAcquiredLock, kConditionQueuedData, nil, and tryDequeue.
Referenced by OOAsyncWorkManagerInternal::completePendingTasks, and tryDequeue.
|
private |
Definition at line 43 of file OOAsyncQueue.h.
Referenced by count, dealloc, emptyQueue, and enqueue:.
|
private |
Definition at line 40 of file OOAsyncQueue.h.
Referenced by empty, emptyQueue, and enqueue:.
|
private |
Definition at line 39 of file OOAsyncQueue.h.
Referenced by init, and tryDequeue.
|
private |
Definition at line 42 of file OOAsyncQueue.h.
|
private |
Definition at line 44 of file OOAsyncQueue.h.
Referenced by enqueue:.
|
private |
Definition at line 41 of file OOAsyncQueue.h.
Referenced by emptyQueue, and enqueue:.