41 void push( T
const& aValue )
53 m_queue.push( std::move( aValue ) );
63 bool pop( T& aReceiver )
73 aReceiver = std::move(
m_queue.front() );
111 typedef std::lock_guard<std::mutex>
GUARD;
Synchronized, locking queue.
bool pop(T &aReceiver)
Pop a value if the queue into the provided variable.
bool empty() const
Return true if the queue is empty.
void clear()
Clear the queue.
std::lock_guard< std::mutex > GUARD
size_t size() const
Return the size of the queue.
void push(T const &aValue)
Push a value onto the queue.
void move_push(T &&aValue)
Move a value onto the queue.