#include <mem.h>
Include dependency graph for tm.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Compounds | |
struct | _pchain_t |
priority chain data structure. More... | |
struct | _tdata_t |
task data structure. More... | |
Defines | |
#define | PRIO_LOWEST 1 |
The lowest possible task priority. More... | |
#define | PRIO_NORMAL 10 |
The priority of most tasks. More... | |
#define | PRIO_HIGHEST 20 |
The highest possible task priority. More... | |
#define | T_DEAD 0 |
dead and gone, stack freed. More... | |
#define | T_ZOMBIE 1 |
terminated, cleanup pending. More... | |
#define | T_WAITING 2 |
waiting for an event. More... | |
#define | T_SLEEPING 3 |
sleeping. wants to run. More... | |
#define | T_RUNNING 4 |
running. More... | |
#define | T_KERNEL (1 << 0) |
kernel task. More... | |
#define | T_USER (1 << 1) |
user task. More... | |
#define | T_IDLE (1 << 2) |
idle task. More... | |
#define | T_SHUTDOWN (1 << 7) |
shutdown requested. More... | |
#define | DEFAULT_STACK_SIZE 512 |
that's enough. More... | |
#define | shutdown_requested() (0) |
Typedefs | |
typedef volatile unsigned char | tstate_t |
task state type. More... | |
typedef volatile unsigned char | tflags_t |
task flags type. More... | |
typedef unsigned char | priority_t |
task priority type. More... | |
typedef unsigned long | wakeup_t |
wakeup data area type. More... | |
typedef _pchain_t | pchain_t |
priority chain data type a shorthand. More... | |
typedef _tdata_t | tdata_t |
task data type. More... | |
typedef size_t | tid_t |
task id type. More... |
Definition in file tm.h.
|
that's enough.
Definition at line 80 of file tm.h. Referenced by kmain(). |
|
The highest possible task priority.
|
|
The lowest possible task priority.
|
|
The priority of most tasks.
Definition at line 52 of file tm.h. Referenced by kmain(). |
|
|
|
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.
|
|
priority chain data type a shorthand.
|
|
task priority type.
|
|
task data type. a shorthand |
|
task flags type.
|
|
task id type. In effect, the kernel simply typecasts *tdata_t to tid_t. |
|
task state type.
|
|
wakeup data area type.
Definition at line 56 of file tm.h. Referenced by enter_critical_section(), wait_critical_section(), and wait_event(). |
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2002 by the authors. |