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 208 of file sources/libs/nvdsinferserver/infer_utils.h.

Public Types | |
| typedef Container::value_type | T |
| 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... | |
| 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 210 of file sources/libs/nvdsinferserver/infer_utils.h.
| typedef Container::value_type INFER_EXPORT_API::GuardQueue< Container >::T |
Definition at line 210 of file 9.1/sources/libs/nvdsinferserver/infer_utils.h.
|
inline |
Clear the queue.
Definition at line 251 of file sources/libs/nvdsinferserver/infer_utils.h.
|
inline |
Clear the queue.
Definition at line 251 of file 9.1/sources/libs/nvdsinferserver/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 225 of file sources/libs/nvdsinferserver/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 225 of file 9.1/sources/libs/nvdsinferserver/infer_utils.h.
|
inline |
Push an item to the queue.
Definition at line 214 of file sources/libs/nvdsinferserver/infer_utils.h.
|
inline |
Push an item to the queue.
Definition at line 214 of file 9.1/sources/libs/nvdsinferserver/infer_utils.h.
|
inline |
Current size of the queue.
Definition at line 260 of file sources/libs/nvdsinferserver/infer_utils.h.
|
inline |
Current size of the queue.
Definition at line 260 of file 9.1/sources/libs/nvdsinferserver/infer_utils.h.
|
inline |
Send the wakeup trigger to the queue thread.
Definition at line 242 of file sources/libs/nvdsinferserver/infer_utils.h.
|
inline |
Send the wakeup trigger to the queue thread.
Definition at line 242 of file 9.1/sources/libs/nvdsinferserver/infer_utils.h.