86 #define TIVX_QUEUE_FLAG_BLOCK_ON_PUT (0x00000001u) 94 #define TIVX_QUEUE_FLAG_BLOCK_ON_GET (0x00000002u) 103 typedef struct _tivx_queue_t {
vx_status tivxQueueCreate(tivx_queue *queue, uint32_t max_elements, uintptr_t *queue_memory, uint32_t flags)
Create a queue.
vx_bool tivxQueueIsEmpty(const tivx_queue *queue)
Check if queue is empty.
volatile vx_bool blockedOnPut
vx_status tivxQueueDelete(tivx_queue *queue)
Delete a queue.
volatile vx_bool blockedOnGet
vx_status tivxQueuePeek(const tivx_queue *queue, uintptr_t *data)
Peek an element from the queue but dont extract it.
vx_status tivxQueueGet(tivx_queue *queue, uintptr_t *data, uint32_t timeout)
Extract a element from the queue.
struct _tivx_mutex_t * tivx_mutex
Typedef for a mutex.
vx_status tivxQueuePut(tivx_queue *queue, uintptr_t data, uint32_t timeout)
Add a element into the queue.
struct _tivx_event_t * tivx_event
Typedef for a event.