class::sys::TaskInfo

class sys::TaskInfo
  : public api::InfoObject

Summary

[TaskInfo](#classsys_1_1_task_info_1a4243a8e8279e2c1550c9443c1a6d2e15)(  

int tid
)

[TaskInfo](#classsys_1_1_task_info_1a06e1185bfdce5e2a86daf6dd22429bf1)(  

const sys_taskattr_t & attr
)

u32 heap() const

u32 heap_size() const

u32 id() const

bool is_active() const

bool is_enabled() const

bool is_thread() const

bool is_valid() const

u32 memory_size() const

const var::ConstString name() const

u32 pid() const

u8 priority() const

u8 priority_ceiling() const

u32 stack() const

u32 stack_size() const

u32 thread_id() const

u64 timer() const

static TaskInfo invalid()

Members

TaskInfo(

int tid
)

Constructs a new object with the give task ID.


TaskInfo(

const sys_taskattr_t & attr
)


u32 heap() const

Returns the location of the heap in memory.


u32 heap_size() const

Returns the heap size available to the task.


u32 id() const

Returns the thread id.


bool is_active() const

Returns true if the task is active (not sleeping or blocked).


bool is_enabled() const

Returns true if the task slot has been assigned.

The system has a fixed number of tasks that it can run. If this returns false, the slot is free to be used by a new task (thread or process).


bool is_thread() const

Returns true if the task is a thread.

This returns true for a task that was created as a new thread within an application. It returns false for tasks that are creating using Sys::launch().


bool is_valid() const

u32 memory_size() const

Returns the number of bytes of memory available to the task.


const var::ConstString name() const

Returns the name of the task.


u32 pid() const

Returns that process ID of the task.


u8 priority() const

Returns the task priority.


u8 priority_ceiling() const

Returns the task priority ceiling (if it has a mutex locked).


u32 stack() const

Returns the location of the stack in memory.


u32 stack_size() const

Returns the stack size of the current task.


u32 thread_id() const

Returns the task id (same value as thread_id()).


u64 timer() const

static TaskInfo invalid()

X

Thanks for Coming!

Subscribe to news and updates