int os_eventq_inited(const struct os_eventq *evq)
Indicates whether an event queue has been initialized.
Arguments | Description |
---|---|
evq | Pointer to the event queue to check |
You do not need to call this function prior to using an event queue if you have called the os_eventq_init()
function to initialize the queue.
struct os_eventq g_my_evq; int my_task_init(uint8_t prio, os_stack_t *stack_ptr, uint16_t stack_len) { /* variable declarations here */ if(os_eventq_inited(&g_my_evq)) { /* deal with the event queue */ }; }