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

#include <BlockingQueue.hpp>

Collaboration diagram for BlockingQueue< T, N >:

Public Member Functions

 BlockingQueue ()
 
 ~BlockingQueue ()
 
void push (T newItem)
 
pop ()
 

Private Attributes

px4_sem_t _sem_head
 
px4_sem_t _sem_tail
 
_data [N] {}
 
size_t _head {0}
 
size_t _tail {0}
 

Detailed Description

template<class T, size_t N>
class BlockingQueue< T, N >

Definition at line 41 of file BlockingQueue.hpp.

Constructor & Destructor Documentation

◆ BlockingQueue()

template<class T , size_t N>
BlockingQueue< T, N >::BlockingQueue ( )
inline

◆ ~BlockingQueue()

template<class T , size_t N>
BlockingQueue< T, N >::~BlockingQueue ( )
inline

Member Function Documentation

◆ pop()

template<class T , size_t N>
T BlockingQueue< T, N >::pop ( )
inline

◆ push()

template<class T , size_t N>
void BlockingQueue< T, N >::push ( newItem)
inline

Member Data Documentation

◆ _data

template<class T , size_t N>
T BlockingQueue< T, N >::_data[N] {}
private

Definition at line 84 of file BlockingQueue.hpp.

Referenced by BlockingQueue< T, N >::pop(), and BlockingQueue< T, N >::push().

◆ _head

template<class T , size_t N>
size_t BlockingQueue< T, N >::_head {0}
private

Definition at line 86 of file BlockingQueue.hpp.

Referenced by BlockingQueue< T, N >::pop().

◆ _sem_head

template<class T , size_t N>
px4_sem_t BlockingQueue< T, N >::_sem_head
private

◆ _sem_tail

template<class T , size_t N>
px4_sem_t BlockingQueue< T, N >::_sem_tail
private

◆ _tail

template<class T , size_t N>
size_t BlockingQueue< T, N >::_tail {0}
private

Definition at line 87 of file BlockingQueue.hpp.

Referenced by BlockingQueue< T, N >::push().


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