Pico-Arduino
All Classes Namespaces Functions Variables Enumerations Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Queue< T > Class Template Reference

Construct a new Pico Queue object. More...

#include <PicoQueue.h>

Public Member Functions

 Queue (int maxCount=100, bool blocking=true, bool withLock=true)
 
bool isEmpty ()
 
bool isFull ()
 
bool peek (T &data)
 
bool push (T &data)
 
bool pop (T &data)
 
uint size ()
 
void clear ()
 

Protected Member Functions

uint nextSpinlockNumber ()
 

Protected Attributes

queue_t q
 
bool is_blocking
 

Detailed Description

template<class T>
class Queue< T >

Construct a new Pico Queue object.

Template Parameters
T
Author
Phil Schatzmann

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