BlockingQueue Class.
More...
#include <BlockingQueue.h>
template<typename T>
class BlockingQueue< T >
BlockingQueue Class.
Class to wrap around std::deque and block thread execution when no data is available at the output or when the queue is full.
- Template Parameters
-
T | Type of elements in the queue |
◆ BlockingQueue()
constructor for BlockingQueue, maxSize may be set
- Template Parameters
-
- Parameters
-
_maxSize | maximum size of the blocking queue to set |
◆ Full()
checks if the queue is full
- Template Parameters
-
- Returns
- true if full; false otherwise
◆ IsEmpty()
- Template Parameters
-
- Returns
- true if internal queue empty, false otherwise
◆ Pop()
Pop method, uses mutex lock to sleep the current thread until data are available on the queue. This may be used to synchonise and schedule threads.
- Template Parameters
-
- Returns
- Element on deque back
◆ Push()
adds element to the queue.
- Template Parameters
-
- Parameters
-
◆ Size()
Gets the current length of elements in the queue.
- Template Parameters
-
- Returns
- size of internal deque
The documentation for this class was generated from the following files: