A queue that uses a mutex to synchronise enqueue and dequeue calls. More...
#include <SynchronizedQueue.hpp>
Public Member Functions | |
T | dequeue () override |
Dequeue an object. More... | |
bool | empty () const override |
Returns true if the queue is empty. More... | |
void | enqueue (T &&element) override |
Enqueue an object, moving the supplied element. More... | |
A queue that uses a mutex to synchronise enqueue and dequeue calls.
The underlying container is an std::list.
T | the element type (must be default constructable in addition being move constructable and assignable) |
|
inlineoverridevirtual |
Dequeue an object.
EmptyException | if no elements are available for dequeueing |
Implements Queue< T >.
|
inlineoverridevirtual |
Returns true if the queue is empty.
Implements Queue< T >.
|
inlineoverridevirtual |
Enqueue an object, moving the supplied element.
Implements Queue< T >.