ISIX-RTOS - small operating system for ARM microcontrollers 1.2
|
C++ wrapper for the task/thread. More...
#include <task.h>
Public Member Functions | |
task_base (std::size_t stack_depth, prio_t priority) | |
virtual | ~task_base () |
Destruct the task/thread object. | |
task_t * | get_taskid () |
bool | is_valid () |
Protected Member Functions | |
virtual void | main ()=0 |
Private Member Functions | |
__attribute__ ((noreturn)) static void start_task(void *ptr) | |
task_base (const task_base &) | |
task_base & | operator= (const task_base &) |
Private Attributes | |
task_t * | task_id |
isix::task_base::task_base | ( | std::size_t | stack_depth, |
prio_t | priority | ||
) | [inline, explicit] |
Construct the task
[in] | stack_depth | Stack depth of the thread/task |
[in] | priority | Thread/task priority |
Definition at line 90 of file task.h.
References isix::isix_task_create(), and task_id.
virtual isix::task_base::~task_base | ( | ) | [inline, virtual] |
Destruct the task/thread object.
Definition at line 95 of file task.h.
References isix::isix_task_delete(), and task_id.
isix::task_base::task_base | ( | const task_base & | ) | [private] |
isix::task_base::__attribute__ | ( | (noreturn) | ) | [inline, private] |
Definition at line 112 of file task.h.
References isix::isix_wait(), and main().
task_t* isix::task_base::get_taskid | ( | ) | [inline] |
bool isix::task_base::is_valid | ( | ) | [inline] |
virtual void isix::task_base::main | ( | ) | [protected, pure virtual] |
Pure virtual method for the object main thread
Referenced by __attribute__().
task_t* isix::task_base::task_id [private] |
Definition at line 121 of file task.h.
Referenced by get_taskid(), is_valid(), task_base(), and ~task_base().