PX4 Firmware
PX4 Autopilot Software http://px4.io
BlockingList< T > Class Template Reference

#include <BlockingList.hpp>

Inheritance diagram for BlockingList< T >:
Collaboration diagram for BlockingList< T >:

Public Member Functions

 ~BlockingList ()
 
void add (T newNode)
 
bool remove (T removeNode)
 
size_t size ()
 
void clear ()
 
pthread_mutex_t & mutex ()
 

Private Attributes

pthread_mutex_t _mutex = PTHREAD_MUTEX_INITIALIZER
 
pthread_cond_t _cv = PTHREAD_COND_INITIALIZER
 

Detailed Description

template<class T>
class BlockingList< T >

Definition at line 49 of file BlockingList.hpp.

Constructor & Destructor Documentation

◆ ~BlockingList()

template<class T >
BlockingList< T >::~BlockingList ( )
inline

Definition at line 53 of file BlockingList.hpp.

References BlockingList< T >::_cv, and BlockingList< T >::_mutex.

Member Function Documentation

◆ add()

template<class T >
void BlockingList< T >::add ( newNode)
inline

Definition at line 59 of file BlockingList.hpp.

References BlockingList< T >::_mutex.

◆ clear()

template<class T >
void BlockingList< T >::clear ( )
inline

Definition at line 77 of file BlockingList.hpp.

References BlockingList< T >::_mutex.

◆ mutex()

template<class T >
pthread_mutex_t& BlockingList< T >::mutex ( )
inline

Definition at line 83 of file BlockingList.hpp.

References BlockingList< T >::_mutex.

◆ remove()

template<class T >
bool BlockingList< T >::remove ( removeNode)
inline

Definition at line 65 of file BlockingList.hpp.

References BlockingList< T >::_mutex.

◆ size()

template<class T >
size_t BlockingList< T >::size ( )
inline

Definition at line 71 of file BlockingList.hpp.

References BlockingList< T >::_mutex.

Member Data Documentation

◆ _cv

template<class T >
pthread_cond_t BlockingList< T >::_cv = PTHREAD_COND_INITIALIZER
private

Definition at line 88 of file BlockingList.hpp.

Referenced by BlockingList< T >::~BlockingList().

◆ _mutex

template<class T >
pthread_mutex_t BlockingList< T >::_mutex = PTHREAD_MUTEX_INITIALIZER
private

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