ISIX-RTOS - small operating system for ARM microcontrollers 1.2
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

isix::task_base Class Reference

C++ wrapper for the task/thread. More...

#include <task.h>

Collaboration diagram for isix::task_base:
Collaboration graph
[legend]

Public Member Functions

 task_base (std::size_t stack_depth, prio_t priority)
virtual ~task_base ()
 Destruct the task/thread object.
task_tget_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_baseoperator= (const task_base &)

Private Attributes

task_ttask_id

Detailed Description

C++ wrapper for the task/thread.

Definition at line 83 of file task.h.


Constructor & Destructor Documentation

isix::task_base::task_base ( std::size_t  stack_depth,
prio_t  priority 
) [inline, explicit]

Construct the task

Parameters:
[in]stack_depthStack depth of the thread/task
[in]priorityThread/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]

Member Function Documentation

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]

Get thread task id

Returns:
Task control object

Definition at line 102 of file task.h.

References task_id.

bool isix::task_base::is_valid ( ) [inline]

Check the fifo object is in valid state

Returns:
True when the object is in valid state

Definition at line 106 of file task.h.

References task_id.

virtual void isix::task_base::main ( ) [protected, pure virtual]

Pure virtual method for the object main thread

Referenced by __attribute__().

task_base& isix::task_base::operator= ( const task_base ) [private]

Field Documentation

Definition at line 121 of file task.h.

Referenced by get_taskid(), is_valid(), task_base(), and ~task_base().


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines