#include <config.h>
#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.
Classes | |
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. | |
#define | PRIO_NORMAL 10 |
The priority of most tasks. | |
#define | PRIO_HIGHEST 20 |
The highest possible task priority. | |
#define | T_DEAD 0 |
task states 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) |
task flags 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 _pchain_t | pchain_t |
priority chain data type a shorthand | |
typedef _tdata_t | tdata_t |
task data type | |
typedef signed int | tid_t |
task id type | |
Variables | |
tdata_t * | ctid |
Defines types and flags used in task management.
Definition in file tm.h.
#define DEFAULT_STACK_SIZE 512 |
#define PRIO_NORMAL 10 |
#define shutdown_requested | ( | ) | ((ctid->tflags & T_SHUTDOWN) != 0) |
#define T_DEAD 0 |
typedef unsigned char priority_t |
typedef signed int tid_t |
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2005 by the authors. |