kupl_event_query
Queries the event status.
Interface Definition
int kupl_queue_query(void);
Parameters
None
Return Value
If the event is created, KUPL_EVENT_STATUS_CREATED is returned.
If the event is submitted, KUPL_EVENT_STATUS_SUBMITTED is returned.
If the event is completed, KUPL_EVENT_STATUS_COMPLETE is returned.
If the query fails, KUPL_ERROR is returned.
Examples
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #include <stdio.h> #include <assert.h> #include "kupl.h" int main() { kupl_event_h event = kupl_event_create(); int ret = kupl_event_query(event); assert(ret == KUPL_EVENT_STATUS_CREATED); kupl_event_destroy(event); return 0; } |
The preceding example demonstrates the process of creating an event and querying its status. The kupl_event_query function returns the current status of the event.
Parent topic: Multi-queue Multi-stream Programming Functions