Neonode zForce(TM) SDK
|
#include <Queue.h>
Public Attributes | |
zForce * | zForce |
Pointer to zForce. | |
void * | QueuePrivate |
Private Queue data. | |
void(* | Destructor )(Queue *self) |
Destroys the Queue, freeing any resources but NOT contents. More... | |
bool(* | Enqueue )(Queue *self, void *payload) |
Add an entry to the queue. More... | |
void *(* | Dequeue )(Queue *self, uint32_t timeoutMilliSeconds) |
Get the first entry from the queue. More... | |
The Queue struct.
void*( * Queue::Dequeue) (Queue *self, uint32_t timeoutMilliSeconds) |
Get the first entry from the queue.
Gets the first payload pointer in the queue, optionally with a timeout for how long to wait for something to be put in the queue. Timeout is specificed in milliseconds. Using a timeout value of 0 means don't wait at all, return either a payload pointer or an error code.
On failure, errno is set.
self | Pointer to the struct itself. |
timeoutMilliSeconds | Timeout in milliseconds. |
void( * Queue::Destructor) (Queue *self) |
Destroys the Queue, freeing any resources but NOT contents.
On failure, errno is set.
self | Pointer to the Queue itself. |
bool( * Queue::Enqueue) (Queue *self, void *payload) |
Add an entry to the queue.
The data is not copied, the pointer is passed in the queue entry.
On failure, errno is set.
self | Pointer to the struct itself. |
payload | The payload pointer to add. |