![]() |
Signapse
|
BlockingQueue Class. More...
#include <BlockingQueue.h>


Public Member Functions | |
| void | Push (T toPush) |
| T | Pop () |
| bool | IsEmpty () |
| int | Size () |
BlockingQueue Class.
Class to wrap around std::deque and block thread execution when no data is available at the output.
| T | Type of elements in the queue |
Definition at line 23 of file BlockingQueue.h.
| bool BlockingQueue< T >::IsEmpty |
| T |
Definition at line 24 of file BlockingQueue.cpp.
| T BlockingQueue< T >::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.
| T |
Definition at line 11 of file BlockingQueue.cpp.
| void BlockingQueue< T >::Push | ( | T | toPush | ) |
adds element to the queue.
| T |
| toPush |
Definition at line 44 of file BlockingQueue.cpp.
| int BlockingQueue< T >::Size |
Gets the current length of elements in the queue.
| T |
Definition at line 34 of file BlockingQueue.cpp.