distortos  X.Y.Z-YYMMDD
Advanced real-time operating system for deeply embedded targets
 All Classes Files Functions Typedefs
distortos::FifoQueue< T > Class Template Reference

FifoQueue class is a simple FIFO queue for thread-thread, thread-interrupt or interrupt-interrupt communication. It supports multiple readers and multiple writers. It is implemented as a thin wrapper for scheduler::FifoQueueBase. More...

#include <FifoQueue.hpp>

Public Types

using Storage = scheduler::FifoQueueBase::Storage< T >
 type of uninitialized storage for data More...
 

Public Member Functions

 FifoQueue (Storage *const storage, const size_t maxElements)
 FifoQueue's constructor. More...
 

Detailed Description

template<typename T>
class distortos::FifoQueue< T >

FifoQueue class is a simple FIFO queue for thread-thread, thread-interrupt or interrupt-interrupt communication. It supports multiple readers and multiple writers. It is implemented as a thin wrapper for scheduler::FifoQueueBase.

Parameters
Tis the type of data in queue

Member Typedef Documentation

template<typename T >
using distortos::FifoQueue< T >::Storage = scheduler::FifoQueueBase::Storage<T>

type of uninitialized storage for data

Constructor & Destructor Documentation

template<typename T >
distortos::FifoQueue< T >::FifoQueue ( Storage *const  storage,
const size_t  maxElements 
)
inline

FifoQueue's constructor.

Parameters
[in]storageis an array of Storage elements
[in]maxElementsis the number of elements in storage array

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