52 #define PRIO_NORMAL 10
54 #define PRIO_HIGHEST 20
75 #define T_KERNEL (1 << 0)
76 #define T_USER (1 << 1)
77 #define T_IDLE (1 << 2)
78 #define T_SHUTDOWN (1 << 7)
81 #define DEFAULT_STACK_SIZE 512
83 #ifndef DOXYGEN_SHOULD_SKIP_INTERNALS
91 struct _pchain_t *next;
92 struct _pchain_t *prev;
94 struct _tdata_t *
ctid;
100 typedef struct _pchain_t pchain_t;
112 struct _tdata_t *next;
113 struct _tdata_t *prev;
114 struct _tdata_t *parent;
119 wakeup_t wakeup_data;
125 typedef struct _tdata_t tdata_t;
127 #endif // DOXYGEN_SHOULD_SKIP_INTERNALS
134 #define shutdown_requested() ((ctid->tflags & T_SHUTDOWN) != 0)
135 extern tdata_t *
ctid;
137 #define shutdown_requested() (0)
147 #endif // __cplusplus
Interface: memory data types.
volatile unsigned char tstate_t
task state type
unsigned char priority_t
task priority type
signed int tid_t
task id type
unsigned long wakeup_t
wakeup data area type
volatile unsigned char tflags_t
task flags type