Function multififo_add

Function Documentation

status_t multififo_add(struct multififo *fifo, const void *e)

Enqueue an element into the multi-FIFO.

  1. Copy the element into an available slot in the root FIFO.

  2. If the ref count for the front/head element in the root FIFO is 0, then add an appropriate number of elements to each child shadow FIFO pointing inside the front element in the root FIFO (which might not be the one just added).

Parameters:
  • fifo – The multi-FIFO handle.

  • e – The element to enqueue. Cannot be NULL.

Returns:

status_t .