17 #ifndef COM_BORA_SOFTWARE__BALAU_CONTAINER__BLOCKING_QUEUE 18 #define COM_BORA_SOFTWARE__BALAU_CONTAINER__BLOCKING_QUEUE 35 public:
virtual void enqueue(T && element) = 0;
40 public:
virtual T
dequeue() = 0;
54 public:
virtual T
tryDequeue(std::chrono::milliseconds waitTime) = 0;
61 public:
virtual bool full()
const = 0;
68 public:
virtual bool empty()
const = 0;
73 #endif // COM_BORA_SOFTWARE__BALAU_CONTAINER__BLOCKING_QUEUE Base interface for queues.
Definition: Queue.hpp:27
Base interface for queues.
virtual bool empty() const =0
Returns true if the queue is empty.
Various container classes, apart from interprocess containers.
Definition: ArrayBlockingQueue.hpp:25
Base interface for blocking queues.
Definition: BlockingQueue.hpp:29
virtual T tryDequeue()=0
Try to dequeue an object.
virtual bool full() const =0
Returns true if the queue is full.
virtual void enqueue(T &&element)=0
Enqueue an object, waiting for space to be available if the queue is full.
virtual T dequeue()=0
Dequeue an object, waiting for an object to become available if the queue is empty.