Contents
ArrayBlockingQueue

Overview

A simple blocking queue that uses a vector as the backing store.

ArrayBlockingQueue implements the BlockingQueue API and provides a blocking queue implemented via a wait-notify pattern.

Quick start

#include <Balau/Container/ArrayBlockingQueue.hpp>

To construct an array blocking queue, specify the capacity of the queue via the constructor.

			// Create an array blocking queue with a capacity of 100.
			ArrayBlockingQueue<T> queue(100);
		

The queue is used in the same way as any other BlockingQueue implementation. See the BlockingQueue API documentation for information on the blocking queue interface.

Concurrency

This queue implementation is thread safe but is not lock free.