NVIDIA DeepStream SDK API Reference

6.4 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 203 of file infer_utils.h.

Inheritance diagram for INFER_EXPORT_API::GuardQueue< Container >:

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

Member Typedef Documentation

◆ T

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

Definition at line 205 of file infer_utils.h.

Member Function Documentation

◆ clear()

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

Clear the queue.

Definition at line 246 of file infer_utils.h.

◆ pop()

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 220 of file infer_utils.h.

◆ push()

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

Push an item to the queue.

Definition at line 209 of file infer_utils.h.

◆ size()

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

Current size of the queue.

Definition at line 255 of file infer_utils.h.

◆ wakeupOnce()

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

Send the wakeup trigger to the queue thread.

Definition at line 237 of file infer_utils.h.


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