Functions | |
int | mars_task_queue_create (struct mars_context *mars, struct mars_task_queue **queue, uint32_t size, uint32_t depth, uint8_t direction) |
[host] Creates a task queue. | |
int | mars_task_queue_destroy (struct mars_task_queue *queue) |
[host] Destroys a task queue. | |
int | mars_task_queue_count (struct mars_task_queue *queue, uint32_t *count) |
[host] Returns the number of data items in the task queue. | |
int | mars_task_queue_clear (struct mars_task_queue *queue) |
[host] Clears the data items in the task queue. | |
int | mars_task_queue_push (struct mars_task_queue *queue, const void *data) |
[host] Pushes the data specified into the task queue. | |
int | mars_task_queue_try_push (struct mars_task_queue *queue, const void *data) |
[host] Pushes the data specified into the task queue. | |
int | mars_task_queue_pop (struct mars_task_queue *queue, void *data) |
[host] Pops data from a task queue. | |
int | mars_task_queue_try_pop (struct mars_task_queue *queue, void *data) |
[host] Pops data from a task queue. | |
int | mars_task_queue_peek (struct mars_task_queue *queue, void *data) |
[host] Pops data from a task queue without removing it. | |
int | mars_task_queue_try_peek (struct mars_task_queue *queue, void *data) |
[host] Pops data from a task queue without removing it. |