T, BlockingBehavior WhenFull, BlockingBehavior WhenEmpty>
44 void push
Thread-safe synchronized producer/consumer queue.
BoundedBuffer(size_t const siz)
Create a new BoundedBuffer with no data and a given size.
size_t filled_size() const
Current number of items actually in the buffer.
void push(T const &val)
Push a new data element into the buffer, potentially sleeping or throwing if buffer is full...
Clear all contents, resetting filled_size() to zero (size() remains unchanged at the max possible siz...
size_t size() const
Max (allocated at construction) size of the buffer.
Pop oldest data element off of the buffer, potentially sleeping until one is available or throwing if...