#include <task.h>
Inherits List_node.
Inheritance diagram for Task:


Public Member Functions | |
| void | init () |
Static Public Member Functions | |
| Task * | create () |
Public Attributes | |
| Task_state | curr_state |
| Task_state | next_state |
| unsigned volatile | stack |
| Semaphore * | semaphore |
Because Torsion is a single address space operating system, there is no distinction such at that between processes and threads. A single execution context in Torsion is called a task. And because it's so lightweight, you can think of it as similar to a thread in a traditional multiple address space operating system.
|
|
Create a task object and return it.
|
|
|
Initialize this task by creating a stack for it.
|
|
|
current state of this task
|
|
|
next state that this task will be
|
|
|
semaphore waiting on (if any)
|
|
|
saved task stack pointer
|
Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman