Function pcqueue_init

Function Documentation

struct pcqueue * pcqueue_init (struct pcqueue *pcqueue_in, const struct fifo_params *params) RCSW_WUR

Initialize a producer-consumer queue.

Parameters:
  • pcqueue_in – An application allocated handle for the queue. Can be NULL, depending on if RCSW_NOALLOC_HANDLE is passed or not.

  • params – The initialization parameters.

Returns:

The initialized queue, or NULL if an error occurred.