![]() |
µGFX
2.9
version 2.9
|
GQUEUE header file.
Definition in file gqueue.h.
Go to the source code of this file.
Data Structures | |
struct | gfxQueueASyncItem |
A queue item. More... | |
struct | gfxQueueASync |
A queue. More... | |
struct | GDataBuffer |
A Data Buffer Queue. More... | |
Functions | |||||||||||||
Initialisation functions | |||||||||||||
Initialise a queue.
| |||||||||||||
void | gfxQueueASyncInit (gfxQueueASync *pqueue) | ||||||||||||
void | gfxQueueGSyncInit (gfxQueueGSync *pqueue) | ||||||||||||
void | gfxQueueFSyncInit (gfxQueueFSync *pqueue) | ||||||||||||
Get() Functions | |||||||||||||
Get an item from the head of the queue (and remove it from the queue).
| |||||||||||||
gfxQueueASyncItem * | gfxQueueASyncGet (gfxQueueASync *pqueue) | ||||||||||||
gfxQueueASyncItem * | gfxQueueASyncGetI (gfxQueueASync *pqueue) | ||||||||||||
gfxQueueGSyncItem * | gfxQueueGSyncGet (gfxQueueGSync *pqueue, gDelay ms) | ||||||||||||
gfxQueueGSyncItem * | gfxQueueGSyncGetI (gfxQueueGSync *pqueue) | ||||||||||||
gfxQueueFSyncItem * | gfxQueueFSyncGet (gfxQueueFSync *pqueue, gDelay ms) | ||||||||||||
Put() Functions | |||||||||||||
Put an item on the end of the queue.
| |||||||||||||
void | gfxQueueASyncPut (gfxQueueASync *pqueue, gfxQueueASyncItem *pitem) | ||||||||||||
void | gfxQueueASyncPutI (gfxQueueASync *pqueue, gfxQueueASyncItem *pitem) | ||||||||||||
void | gfxQueueGSyncPut (gfxQueueGSync *pqueue, gfxQueueGSyncItem *pitem) | ||||||||||||
void | gfxQueueGSyncPutI (gfxQueueGSync *pqueue, gfxQueueGSyncItem *pitem) | ||||||||||||
gBool | gfxQueueFSyncPut (gfxQueueFSync *pqueue, gfxQueueFSyncItem *pitem, gDelay ms) | ||||||||||||
Push() Functions | |||||||||||||
Push an item into the start of the queue.
| |||||||||||||
void | gfxQueueASyncPush (gfxQueueASync *pqueue, gfxQueueASyncItem *pitem) | ||||||||||||
void | gfxQueueASyncPushI (gfxQueueASync *pqueue, gfxQueueASyncItem *pitem) | ||||||||||||
void | gfxQueueGSyncPush (gfxQueueGSync *pqueue, gfxQueueGSyncItem *pitem) | ||||||||||||
void | gfxQueueGSyncPushI (gfxQueueGSync *pqueue, gfxQueueGSyncItem *pitem) | ||||||||||||
gBool | gfxQueueFSyncPush (gfxQueueFSync *pqueue, gfxQueueFSyncItem *pitem, gDelay ms) | ||||||||||||
Insert() Functions | |||||||||||||
Insert an item on the queue after the specified item.
| |||||||||||||
void | gfxQueueASyncInsert (gfxQueueASync *pqueue, gfxQueueASyncItem *pitem, gfxQueueASyncItem *pafter) | ||||||||||||
void | gfxQueueASyncInsertI (gfxQueueASync *pqueue, gfxQueueASyncItem *pitem, gfxQueueASyncItem *pafter) | ||||||||||||
void | gfxQueueGSyncInsert (gfxQueueGSync *pqueue, gfxQueueGSyncItem *pitem, gfxQueueASyncItem *pafter) | ||||||||||||
void | gfxQueueGSyncInsertI (gfxQueueGSync *pqueue, gfxQueueGSyncItem *pitem, gfxQueueASyncItem *pafter) | ||||||||||||
gBool | gfxQueueFSyncInsert (gfxQueueFSync *pqueue, gfxQueueFSyncItem *pitem, gfxQueueFSyncItem *pafter, gDelay ms) | ||||||||||||
Remove() Functions | |||||||||||||
Remove an item from the queue.
| |||||||||||||
void | gfxQueueASyncRemove (gfxQueueASync *pqueue, gfxQueueASyncItem *pitem) | ||||||||||||
void | gfxQueueASyncRemoveI (gfxQueueASync *pqueue, gfxQueueASyncItem *pitem) | ||||||||||||
void | gfxQueueGSyncRemove (gfxQueueGSync *pqueue, gfxQueueGSyncItem *pitem) | ||||||||||||
void | gfxQueueGSyncRemoveI (gfxQueueGSync *pqueue, gfxQueueGSyncItem *pitem) | ||||||||||||
void | gfxQueueFSyncRemove (gfxQueueFSync *pqueue, gfxQueueFSyncItem *pitem) | ||||||||||||
IsInQueue() Functions | |||||||||||||
Is an item in the queue?
| |||||||||||||
gBool | gfxQueueASyncIsIn (gfxQueueASync *pqueue, const gfxQueueASyncItem *pitem) | ||||||||||||
gBool | gfxQueueASyncIsInI (gfxQueueASync *pqueue, const gfxQueueASyncItem *pitem) | ||||||||||||
gBool | gfxQueueGSyncIsIn (gfxQueueGSync *pqueue, const gfxQueueGSyncItem *pitem) | ||||||||||||
gBool | gfxQueueGSyncIsInI (gfxQueueGSync *pqueue, const gfxQueueGSyncItem *pitem) | ||||||||||||
gBool | gfxQueueFSyncIsIn (gfxQueueFSync *pqueue, const gfxQueueFSyncItem *pitem) | ||||||||||||
gBool | gfxQueueFSyncIsInI (gfxQueueFSync *pqueue, const gfxQueueFSyncItem *pitem) | ||||||||||||
BufferAlloc() Functions | |||||||||||||
Allocate some buffers and put them on the free list
| |||||||||||||
gBool | gfxBufferAlloc (unsigned num, gMemSize size) | ||||||||||||
BufferIsAvailable() Functions | |||||||||||||
Is there one or more buffers currently available on the free list
| |||||||||||||
gBool | gfxBufferIsAvailable (void) | ||||||||||||
BufferGet() Functions | |||||||||||||
Get a buffer from the free list
| |||||||||||||
GDataBuffer * | gfxBufferGet (gDelay ms) | ||||||||||||
GDataBuffer * | gfxBufferGetI (void) | ||||||||||||
BufferRelease() Functions | |||||||||||||
Release a buffer back to the free list
| |||||||||||||
void | gfxBufferRelease (GDataBuffer *pd) | ||||||||||||
void | gfxBufferReleaseI (GDataBuffer *pd) | ||||||||||||
Macros | ||||
Pop() Functions | ||||
Pop an item from the head of the queue (and remove it from the queue). This is exactly the same as the Get operation above.
| ||||
#define | gfxQueueASyncPop(pqueue) gfxQueueASyncGet(pqueue) | |||
#define | gfxQueueASyncPopI(pqueue) gfxQueueASyncGetI(pqueue) | |||
#define | gfxQueueGSyncPop(pqueue, ms) gfxQueueGSyncGet(pqueue, ms) | |||
#define | gfxQueueFSyncPop(pqueue, ms) gfxQueueFSyncGet(pqueue, ms) | |||
isEmpty() Functions | ||||
Is the queue empty?
| ||||
#define | gfxQueueASyncIsEmpty(pqueue) ((pqueue)->head == 0) | |||
#define | gfxQueueASyncIsEmptyI(pqueue) ((pqueue)->head == 0) | |||
#define | gfxQueueGSyncIsEmpty(pqueue) ((pqueue)->head == 0) | |||
#define | gfxQueueGSyncIsEmptyI(pqueue) ((pqueue)->head == 0) | |||
#define | gfxQueueFSyncIsEmpty(pqueue) ((pqueue)->head == 0) | |||
#define | gfxQueueFSyncIsEmptyI(pqueue) ((pqueue)->head == 0) | |||
Peek() Functions | ||||
Get the first item from the head of the queue but do not remove it from the queue.
| ||||
#define | gfxQueueASyncPeek(pqueue) ((const gfxQueueASyncItem *)((pqueue)->head)) | |||
#define | gfxQueueASyncPeekI(pqueue) ((const gfxQueueASyncItem *)((pqueue)->head)) | |||
#define | gfxQueueGSyncPeek(pqueue) ((const gfxQueueGSyncItem *)((pqueue)->head)) | |||
#define | gfxQueueGSyncPeekI(pqueue) ((const gfxQueueGSyncItem *)((pqueue)->head)) | |||
#define | gfxQueueFSyncPeek(pqueue) ((const gfxQueueFSyncItem *)((pqueue)->head)) | |||
#define | gfxQueueFSyncPeekI(pqueue) ((const gfxQueueFSyncItem *)((pqueue)->head)) | |||
Next() Functions | ||||
Get the next item in the queue (but do not remove it from the queue).
| ||||
#define | gfxQueueASyncNext(pitem) ((const gfxQueueASyncItem *)((pitem)->next)) | |||
#define | gfxQueueASyncNextI(pitem) ((const gfxQueueASyncItem *)((pitem)->next)) | |||
#define | gfxQueueGSyncNext(pitem) ((const gfxQueueGSyncItem *)((pitem)->next)) | |||
#define | gfxQueueGSyncNextI(pitem) ((const gfxQueueGSyncItem *)((pitem)->next)) | |||
#define | gfxQueueFSyncNext(pitem) ((const gfxQueueFSyncItem *)((pitem)->next)) | |||
#define | gfxQueueFSyncNextI(pitem) ((const gfxQueueFSyncItem *)((pitem)->next)) | |||
Typedefs | |
typedef struct GDataBuffer | GDataBuffer |
A Data Buffer Queue. More... | |
typedef struct gfxQueueASyncItem | gfxQueueASyncItem |
A queue item. More... | |
typedef struct gfxQueueASync | gfxQueueASync |
A queue. More... | |
Deinitialisation functions | ||||
| ||||
#define | gfxQueueASyncDeinit(pqueue) | |||
void | gfxQueueGSyncDeinit (gfxQueueGSync *pqueue) | |||
void | gfxQueueFSyncDeinit (gfxQueueFSync *pqueue) | |||