IntrOS
Loading...
Searching...
No Matches
intros::TaskT< size_ > Struct Template Reference

create and initialize complete work area for task object More...

#include <ostask.h>

Inheritance diagram for intros::TaskT< size_ >:

Public Member Functions

template<class F>
 TaskT (F &&_proc)
 constructor, see the constructor parameters of the class
template<typename F, typename... A>
 TaskT (F &&_proc, A &&... _args)
 constructor, see the constructor parameters of the class
 TaskT (TaskT< size_ > &&_src)
 move constructor
 TaskT (const TaskT< size_ > &)=delete
TaskT< size_ > & operator= (TaskT< size_ > &&)=delete
TaskT< size_ > & operator= (const TaskT< size_ > &)=delete

Static Public Member Functions

template<class F>
static TaskT< size_ > Make (F &&_proc)
 create and initialize static task
template<typename F, typename... A>
static TaskT< size_ > Make (F &&_proc, A &&... _args)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<class F>
static TaskT< size_ > Start (F &&_proc)
 create, initialize and start static task
template<typename F, typename... A>
static TaskT< size_ > Start (F &&_proc, A &&... _args)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Detailed Description

template<size_t size_>
struct intros::TaskT< size_ >

create and initialize complete work area for task object

Constructor parameters
  • size: size of task private stack (in bytes)
  • proc: task proc (initial task function) doesn't have to be noreturn-type it will be executed into an infinite system-implemented loop

Member Function Documentation

◆ Make()

template<size_t size_>
template<class F>
TaskT< size_ > intros::TaskT< size_ >::Make ( F && _proc)
inlinestatic

create and initialize static task

Parameters
  • size: size of task private stack (in bytes)
  • proc: task proc (initial task function) doesn't have to be noreturn-type it will be executed into an infinite system-implemented loop
  • args: arguments for task proc
Returns
TaskT<> object

◆ Start()

template<size_t size_>
template<class F>
TaskT< size_ > intros::TaskT< size_ >::Start ( F && _proc)
inlinestatic

create, initialize and start static task

Parameters
  • size: size of task private stack (in bytes)
  • proc: task proc (initial task function) doesn't have to be noreturn-type it will be executed into an infinite system-implemented loop
  • args: arguments for task proc
Returns
TaskT<> object

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