Template class for creating a thread safe queue for the given container class.
Container | The container class for the queue, e.g. std::queue, std::list. |
Definition at line 203 of file infer_utils.h.
Public Types | |
typedef Container::value_type | T |
Public Member Functions | |
void | push (T data) |
Push an item to the queue. More... | |
T | pop () |
Pop an item from the queue. More... | |
void | wakeupOnce () |
Send the wakeup trigger to the queue thread. More... | |
void | clear () |
Clear the queue. More... | |
int | size () |
Current size of the queue. More... | |
typedef Container::value_type INFER_EXPORT_API::GuardQueue< Container >::T |
Definition at line 205 of file infer_utils.h.
|
inline |
Clear the queue.
Definition at line 246 of file infer_utils.h.
|
inline |
Pop an item from the queue.
Blocking call. Returns when there is an item in queue or on wakeup trigger. Throws exception on wakeup trigger.
Definition at line 220 of file infer_utils.h.
|
inline |
Push an item to the queue.
Definition at line 209 of file infer_utils.h.
|
inline |
Current size of the queue.
Definition at line 255 of file infer_utils.h.
|
inline |
Send the wakeup trigger to the queue thread.
Definition at line 237 of file infer_utils.h.