StateOS
Loading...
Searching...
No Matches
stateos::RawBufferTT< limit_, C > Struct Template Reference

create and initialize a raw buffer object More...

#include <osrawbuffer.h>

Inheritance diagram for stateos::RawBufferTT< limit_, C >:
stateos::RawBufferT< limit_ *sizeof(C)>

Public Types

using Ptr = std::unique_ptr<RawBufferTT<limit_, C>>
 result type of Create()

Public Member Functions

constexpr RawBufferTT ()
 constructor, see the constructor parameters of the class
int take (C *_data)
 raw_take()
int tryWait (C *_data)
 raw_tryWait()
int takeISR (C *_data)
 raw_takeISR()
template<typename T>
int waitFor (C *_data, const T &_delay)
 raw_waitFor()
template<typename T>
int waitUntil (C *_data, const T &_time)
 raw_waitUntil()
int wait (C *_data)
 raw_wait()
int give (const C *_data)
 raw_give()
int giveISR (const C *_data)
 raw_giveISR()
template<typename T>
int sendFor (const C *_data, const T &_delay)
 raw_sendFor()
template<typename T>
int sendUntil (const C *_data, const T &_time)
 raw_sendUntil()
int send (const C *_data)
 raw_send()
int push (const C *_data)
 raw_push()
int pushISR (const C *_data)
 raw_pushISR()

Static Public Member Functions

static Ptr Create ()
 create dynamic object with manageable resources

Detailed Description

template<unsigned limit_, class C>
struct stateos::RawBufferTT< limit_, C >

create and initialize a raw buffer object

Constructor parameters
  • limit: size of a buffer (max number of stored objects)
  • C: class of an object

Member Function Documentation

◆ Create()

template<unsigned limit_, class C>
Ptr stateos::RawBufferTT< limit_, C >::Create ( )
inlinestatic

create dynamic object with manageable resources

Parameters
  • limit: size of a buffer (max number of stored objects)
  • C: class of an object
Returns
std::unique_pointer / pointer to RawBufferTT<> object
Note
use only in thread mode

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