Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOAsyncQueue.m File Reference
#include <assert.h>
import "OOAsyncQueue.h"
import "OOFunctionAttributes.h"
import "OOLogging.h"
import "NSThreadOOExtensions.h"
#include <stdlib.h>
+ Include dependency graph for OOAsyncQueue.m:

Go to the source code of this file.

Classes

struct  OOAsyncQueueElement
 
category  OOAsyncQueue(OOPrivate)
 

Macros

#define OO_BUGGY_PTHREADS   0
 

Typedefs

typedef struct OOAsyncQueueElement OOAsyncQueueElement
 

Enumerations

enum  { kConditionNoData = 1 , kConditionQueuedData , kConditionDead }
 
enum  { kMaxPoolElements = 5 }
 

Functions

OOINLINE OOAsyncQueueElementAllocElement (void)
 
OOINLINE void FreeElement (OOAsyncQueueElement *element)
 

Macro Definition Documentation

◆ OO_BUGGY_PTHREADS

#define OO_BUGGY_PTHREADS   0

Definition at line 42 of file OOAsyncQueue.m.

Typedef Documentation

◆ OOAsyncQueueElement

typedef struct OOAsyncQueueElement OOAsyncQueueElement

Definition at line 60 of file OOAsyncQueue.m.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
kConditionNoData 
kConditionQueuedData 
kConditionDead 

Definition at line 46 of file OOAsyncQueue.m.

47{
51};
@ kConditionQueuedData
@ kConditionNoData
@ kConditionDead

◆ anonymous enum

anonymous enum
Enumerator
kMaxPoolElements 

Definition at line 54 of file OOAsyncQueue.m.

55{
57};
@ kMaxPoolElements

Function Documentation

◆ AllocElement()

OOINLINE OOAsyncQueueElement * AllocElement ( void )

Definition at line 68 of file OOAsyncQueue.m.

69{
70 return malloc(sizeof (OOAsyncQueueElement));
71}

◆ FreeElement()

OOINLINE void FreeElement ( OOAsyncQueueElement * element)

Definition at line 74 of file OOAsyncQueue.m.

75{
76 free(element);
77}