Function pcqueue_timedpop

Function Documentation

status_t pcqueue_timedpop(struct pcqueue *pcqueue, const struct timespec *to, void *e)

Pop and return the first element in the queue, waiting until the timeout if necessary for the queue to become non-empty.

Parameters:
  • pcqueue – The queue handle.

  • to – A RELATIVE timeout.

  • e – The item to dequeue. Can be NULL.

Returns:

status_t.