NVIDIA DeepStream SDK API Reference

9.1 Release
INFER_EXPORT_API::GuardQueue< Container > Class Template Reference

Detailed Description

template<typename Container>
class INFER_EXPORT_API::GuardQueue< Container >

Template class for creating a thread safe queue for the given container class.

Template Parameters
ContainerThe container class for the queue, e.g. std::queue, std::list.

Definition at line 208 of file sources/libs/nvdsinferserver/infer_utils.h.

Inheritance diagram for INFER_EXPORT_API::GuardQueue< Container >:

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...
 

Member Typedef Documentation

◆ T [1/2]

template<typename Container >
typedef Container::value_type INFER_EXPORT_API::GuardQueue< Container >::T

Definition at line 210 of file sources/libs/nvdsinferserver/infer_utils.h.

◆ T [2/2]

template<typename Container >
typedef Container::value_type INFER_EXPORT_API::GuardQueue< Container >::T

Member Function Documentation

◆ clear() [1/2]

template<typename Container >
void INFER_EXPORT_API::GuardQueue< Container >::clear ( )
inline

Clear the queue.

Definition at line 251 of file sources/libs/nvdsinferserver/infer_utils.h.

◆ clear() [2/2]

template<typename Container >
void INFER_EXPORT_API::GuardQueue< Container >::clear ( )
inline

Clear the queue.

Definition at line 251 of file 9.1/sources/libs/nvdsinferserver/infer_utils.h.

◆ pop() [1/2]

template<typename Container >
T INFER_EXPORT_API::GuardQueue< Container >::pop ( )
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.

◆ pop() [2/2]

template<typename Container >
T INFER_EXPORT_API::GuardQueue< Container >::pop ( )
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.

◆ push() [1/2]

template<typename Container >
void INFER_EXPORT_API::GuardQueue< Container >::push ( T  data)
inline

Push an item to the queue.

Definition at line 214 of file sources/libs/nvdsinferserver/infer_utils.h.

◆ push() [2/2]

template<typename Container >
void INFER_EXPORT_API::GuardQueue< Container >::push ( T  data)
inline

Push an item to the queue.

Definition at line 214 of file 9.1/sources/libs/nvdsinferserver/infer_utils.h.

◆ size() [1/2]

template<typename Container >
int INFER_EXPORT_API::GuardQueue< Container >::size ( )
inline

Current size of the queue.

Definition at line 260 of file sources/libs/nvdsinferserver/infer_utils.h.

◆ size() [2/2]

template<typename Container >
int INFER_EXPORT_API::GuardQueue< Container >::size ( )
inline

Current size of the queue.

Definition at line 260 of file 9.1/sources/libs/nvdsinferserver/infer_utils.h.

◆ wakeupOnce() [1/2]

template<typename Container >
void INFER_EXPORT_API::GuardQueue< Container >::wakeupOnce ( )
inline

Send the wakeup trigger to the queue thread.

Definition at line 242 of file sources/libs/nvdsinferserver/infer_utils.h.

◆ wakeupOnce() [2/2]

template<typename Container >
void INFER_EXPORT_API::GuardQueue< Container >::wakeupOnce ( )
inline

Send the wakeup trigger to the queue thread.

Definition at line 242 of file 9.1/sources/libs/nvdsinferserver/infer_utils.h.


The documentation for this class was generated from the following file: