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

create and initialize a mailbox queue object More...

#include <osmailboxqueue.h>

Inheritance diagram for stateos::MailBoxQueueTT< limit_, C >:
stateos::MailBoxQueueT< limit_, sizeof(C)>

Public Types

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

Public Member Functions

constexpr MailBoxQueueTT ()
 constructor, see the constructor parameters of the class

Static Public Member Functions

static Ptr Create ()
 create dynamic object with manageable resources

Detailed Description

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

create and initialize a mailbox queue object

Constructor parameters
  • limit: size of a queue (max number of stored mails)
  • C: class of a single mail

Member Function Documentation

◆ Create()

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

create dynamic object with manageable resources

Parameters
  • limit: size of a queue (max number of stored mails)
  • C: class of a single mail
Returns
std::unique_pointer / pointer to MailBoxQueueTT<> object
Note
use only in thread mode

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