Function pcqueue_n_free

Function Documentation

static inline size_t pcqueue_n_free(const struct pcqueue *const queue)

Get the # slots available in the queue. The value returned cannot be relied upon in a multi-thread context without additional synchronization.

Parameters:

queue – The queue handle.

Returns:

# free slots, or 0 on ERROR.