Function pcqueue_size

Function Documentation

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

Determine # elements currently in the queue. The value returned by this function should not be relied upon for accuracy among multiple threads without additional synchronization.

Parameters:

queue – The queue handle.

Returns:

# elements in queue, or 0 on ERROR.