A Contiki subprocess is a "process-in-a-process".
#define SUBPROCESS_BEGIN |
( |
|
strname | ) |
|
Value:{ \
static
struct process subprocess_subprocess = {
NULL, strname}; \
Definition: process.h:315
void process_start(struct process *p, const char *arg)
Start a process.
Definition: process.c:99
#define NULL
Definition: def.h:47
struct pt pt
Definition: process.h:324
#define LC_SET(s)
Definition: lc-addrlabels.h:75
#define PROCESS_CURRENT()
Get a pointer to the currently running process.
Definition: process.h:402
lc_t lc
Definition: pt.h:54
#define PT_INIT(pt)
Initialize a protothread.
Definition: pt.h:79
if(memp!=NULL)
Definition: memp.c:407
#define SUBPROCESS_END |
( |
| ) |
|
Value:
} \
}
#define PROCESS_EXIT()
Exit the currently running process.
Definition: process.h:200