#include <ConcurrentQueue.hpp>
template<typename Data>
class bites::ConcurrentQueue< Data >
The ConcurrentQueue class is a thread-safe queue. Code is adapted from original posting by Anthony Williams at http://www.justsoftwaresolutions.co.uk/threading/implementing-a-thread-safe-queue-using-condition-variables.html
Push data onto queue.
- Parameters
-
Test whether the queue is empty.
- Returns
- whether the queue is empty (i.e. whether its size is zero.)
- Parameters
-
popped_value | reference to popped value, if successful. |
- Returns
- true if a value was popped, false otherwise (i.e. nothing in the queue.)
Pops value off the queue (waits until queue has value first.)
- Parameters
-
popped_value | reference to popped value. |
Return size.
- Returns
- number of elements in the queue.
The documentation for this class was generated from the following file: