#include <config.h>
#include <mem.h>
Include dependency graph for tm.h:

Go to the source code of this file.
Defines | |
| #define | PRIO_LOWEST 1 |
| The lowest possible task priority. | |
| #define | PRIO_NORMAL 10 |
| The priority of most tasks. | |
| #define | PRIO_HIGHEST 20 |
| The highest possible task priority. | |
| #define | T_DEAD 0 |
| dead and gone, stack freed | |
| #define | T_ZOMBIE 1 |
| terminated, cleanup pending | |
| #define | T_WAITING 2 |
| waiting for an event | |
| #define | T_SLEEPING 3 |
| sleeping. wants to run. | |
| #define | T_RUNNING 4 |
| running | |
| #define | T_KERNEL (1 << 0) |
| kernel task | |
| #define | T_USER (1 << 1) |
| user task | |
| #define | T_IDLE (1 << 2) |
| idle task | |
| #define | T_SHUTDOWN (1 << 7) |
| shutdown requested | |
| #define | DEFAULT_STACK_SIZE 512 |
| that's enough. | |
| #define | shutdown_requested() ((ctid->tflags & T_SHUTDOWN) != 0) |
| test to see if task has been asked to shutdown | |
Typedefs | |
| typedef volatile unsigned char | tstate_t |
| task state type | |
| typedef volatile unsigned char | tflags_t |
| task flags type | |
| typedef unsigned char | priority_t |
| task priority type | |
| typedef unsigned long | wakeup_t |
| wakeup data area type | |
| typedef signed int | tid_t |
| task id type | |
Variables | |
| tdata_t * | ctid |
Definition in file tm.h.
|
|
that's enough.
|
|
|
The highest possible task priority.
|
|
|
The lowest possible task priority.
|
|
|
The priority of most tasks.
|
|
|
test to see if task has been asked to shutdown Check task shutdown flag. If set, the task should shutdown as soon as possible. If clear, continue running. |
|
|
dead and gone, stack freed
|
|
|
idle task
|
|
|
kernel task
|
|
|
running
|
|
|
shutdown requested
|
|
|
sleeping. wants to run.
|
|
|
user task
|
|
|
waiting for an event
|
|
|
terminated, cleanup pending
|
|
|
task priority type
|
|
|
task flags type
|
|
|
task id type In effect, the kernel simply typecasts *tdata_t to tid_t. |
|
|
task state type
|
|
|
wakeup data area type
|
|
|
|
|
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2002 by the authors. |
1.3.5