65 #ifndef TIVX_EVENT_QUEUE_H_ 66 #define TIVX_EVENT_QUEUE_H_ 85 typedef struct _tivx_event_queue_elem_t
100 typedef struct _tivx_event_queue_t
173 vx_enum event_id, uint64_t timestamp, uint32_t app_value, uintptr_t param1, uintptr_t param2, uintptr_t param3);
void ownEventQueueEnableEvents(tivx_event_queue_t *event_q, vx_bool enable)
Enable an event queue.
vx_event_type_e
Type of event that can be generated during system execution.
tivx_queue free_queue
handle to free queue holding tivx_event_queue_elem_t's NOTE: queue holds index's to event_list[] ...
vx_bool enable
flag to control enable/disable of event addition to event queue
vx_status ownEventQueueCreate(tivx_event_queue_t *event_q)
Create a event queue.
#define TIVX_EVENT_QUEUE_MAX_SIZE
Max size of event queue.
tivx_queue ready_queue
handle to ready queue holding tivx_event_queue_elem_t's which are ready to be delivered to users NOTE...
struct _vx_reference * vx_reference
VX_API_ENTRY vx_status VX_API_CALL ownRegisterEvent(vx_reference ref, enum tivx_queue_type_e queue_type, enum vx_event_type_e type, vx_uint32 param, vx_uint32 app_value)
Registers an event to a given event queue.
vx_status vxWaitEventQueue(tivx_event_queue_t *event_q, vx_event_t *event, vx_bool do_not_block)
Generic wait event queue API.
#define VX_ATTRIBUTE_BASE(vendor, object)
vx_status ownEventQueueAddEvent(tivx_event_queue_t *event_q, vx_enum event_id, uint64_t timestamp, uint32_t app_value, uintptr_t param1, uintptr_t param2, uintptr_t param3)
Add event to event queue.
Data structure which holds event information.
tivx_queue_type_e
Type of event that can be generated during system execution.
void ownEventQueueDelete(tivx_event_queue_t *event_q)
Delete a event queue.
Element inserted into event queue.
vx_status(* VX_API_CALL)(vx_reference *ref)
Callback type used to register release callbacks from object dervied from references.