TinyRobotics
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
SynchronizedQueue< T, TMutex, TAllocator > Class Template Reference

FIFO Queue which is based on a List that is thread save. More...

#include <SynchronizedQueue.h>

Public Member Functions

bool enqueue (T &data)
 
bool peek (T &data)
 
bool dequeue (T &data)
 
size_t size ()
 
bool clear ()
 
bool empty ()
 

Protected Attributes

std::list< T, TAllocator > l
 
TMutex mutex
 

Detailed Description

template<class T, class TMutex, class TAllocator = AllocatorPSRAM<T>>
class tinyrobotics::SynchronizedQueue< T, TMutex, TAllocator >

FIFO Queue which is based on a List that is thread save.

Author
Phil Schatzmann
Template Parameters
T
TMutex
TAllocatorAllocator type for the underlying list (default: AllocatorPSRAM<T>)

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