process list and process structure source code based on Contiki's source code
#define PROCESS_STATE_NONE 0 |
#define PROCESS_STATE_RUNNING 1 |
#define PROCESS_STATE_CALLED 2 |
struct process *process_list = NULL; |
struct process { |
struct process *next; |
PT_THREAD((* thread)(struct pt *, process_event_t, process_data_t)); |
struct pt pt; |
unsigned char state, needspoll; |
} |