#include <ThreadSafeQueue.h>
Collaboration diagram for qpid::sys::ThreadSafeQueue< T, ContainerType >:
Public Member Functions | |
void | push (const T &value) |
Push a value onto the back of the queue. | |
T | pop () |
Pop a value from the front of the queue. | |
bool | pop (T &outValue, const Time &timeout) |
If a value becomes available within the timeout, set outValue and return true. | |
void | shutdown () |
Interrupt threads waiting in pop(). | |
bool | isShutdown () |
True if queue is shutdown. | |
size_t | size () |
Size of the queue. | |
bool | empty () |
True if queue is empty. |
bool qpid::sys::ThreadSafeQueue< T, ContainerType >::pop | ( | T & | outValue, | |
const Time & | timeout | |||
) | [inline] |
If a value becomes available within the timeout, set outValue and return true.
Otherwise return false;
T qpid::sys::ThreadSafeQueue< T, ContainerType >::pop | ( | ) | [inline] |
Pop a value from the front of the queue.
Waits till value is available.
ShutdownException | if queue is shutdown while waiting. |