// --------------------------------------------------------------------------- // Get number of pending items in queue int IPC_msgPending(int queue_write) { struct ipc_queue *q = queue_write ? qwr : qrd; if (!QUEUE_IS_VALID(q)) return QUEUE_ERROR; return QUEUE_DATA_COUNT(q); }
/* Get number of pending items in queue */ int IPC_msgPending(uint16_t cpu) { struct ipc_queue *q = &q_ipc[cpu]; if (!QUEUE_IS_VALID(q)) { return QUEUE_ERROR; } return QUEUE_DATA_COUNT(q); }