|
|
template<class F> |
| | TaskT (const unsigned _prio, F &&_proc) |
| | constructor, see the constructor parameters of the class
|
|
template<class F> |
| | TaskT (F &&_proc) |
| | constructor, see the constructor parameters of the class
|
|
template<typename F, typename... A> |
| | TaskT (const unsigned _prio, F &&_proc, A &&... _args) |
| | constructor, see the constructor parameters of the class
|
|
template<typename F, typename... A, typename = std::enable_if_t<std::is_invocable_v<F, 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 |
|
| template<class F> |
| static TaskT< size_ > | Make (const unsigned _prio, F &&_proc) |
| | create and initialize static undetachable task
|
|
template<class F> |
| static TaskT< size_ > | Make (F &&_proc) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
template<typename F, typename... A> |
| static TaskT< size_ > | Make (const unsigned _prio, 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<typename F, typename... A, typename = std::enable_if_t<std::is_invocable_v<F, 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 (const unsigned _prio, F &&_proc) |
| | create, initialize and start static undetachable task
|
|
template<class F> |
| static TaskT< size_ > | Start (F &&_proc) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
template<typename F, typename... A> |
| static TaskT< size_ > | Start (const unsigned _prio, 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<typename F, typename... A, typename = std::enable_if_t<std::is_invocable_v<F, 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.
|
| template<class F> |
| static Ptr | Create (const unsigned _prio, F &&_proc) |
| | create, initialize and start dynamic joinable task
|
|
template<class F> |
| static Ptr | Create (F &&_proc) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
template<typename F, typename... A> |
| static Ptr | Create (const unsigned _prio, 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<typename F, typename... A, typename = std::enable_if_t<std::is_invocable_v<F, A...>>> |
| static Ptr | Create (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 Ptr | Detached (const unsigned _prio, F &&_proc) |
| | create, initialize and start dynamic detached task
|
|
template<class F> |
| static Ptr | Detached (F &&_proc) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
template<typename F, typename... A> |
| static Ptr | Detached (const unsigned _prio, 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<typename F, typename... A, typename = std::enable_if_t<std::is_invocable_v<F, A...>>> |
| static Ptr | Detached (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<size_t size_>
struct stateos::TaskT< size_ >
create and initialize complete work area for task object
- Constructor parameters
- size: size of task private stack (in bytes)
- prio: initial task priority (any unsigned int value)
- proc: task proc (initial task function) doesn't have to be noreturn-type it will be executed into an infinite system-implemented loop