Esempio n. 1
0
// ---------------------------------------------------------------------------
// 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);
}
Esempio n. 2
0
/* 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);
}