Neonode zForce(TM) SDK

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Queue.h
Go to the documentation of this file.
1
12 #ifndef QUEUE_QUEUE_H
13 #define QUEUE_QUEUE_H
14
15 #ifndef ZFORCECOMMON_H
16 #error Please include "zForceCommon.h" before this file.
17 #endif // ZFORCECOMMON_H
18
22 typedef struct Queue Queue;
26 struct Queue
27 {
28 zForce * zForce;
29 void * QueuePrivate;
30
44 void ( * Destructor)(Queue * self);
62 bool ( * Enqueue)(Queue * self, void * payload);
83 void * ( * Dequeue)(Queue * self, uint32_t timeoutMilliSeconds);
84 };
85
99 DLLEXTERNAL Queue * Queue_New (void);
100
101 #endif // QUEUE_QUEUE_H
102
Queue::zForce
zForce * zForce
Pointer to zForce.
Definition: Queue.h:28
Queue::Enqueue
bool(* Enqueue)(Queue *self, void *payload)
Add an entry to the queue.
Definition: Queue.h:62
Queue
The Queue struct.
Definition: Queue.h:26
zForce
Main struct.
Definition: zForce.h:29
Queue::QueuePrivate
void * QueuePrivate
Private Queue data.
Definition: Queue.h:29
Queue::Destructor
void(* Destructor)(Queue *self)
Destroys the Queue, freeing any resources but NOT contents.
Definition: Queue.h:44
Queue_New
DLLEXTERNAL Queue * Queue_New(void)
Create a new Queue.