Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Contiki subprocesses

A Contiki subprocess is a "process-in-a-process".

Files

file  subprocess.h
 
    Subprocesses for Contiki

 

Macros

#define SUBPROCESS_BEGIN(strname)
 
#define SUBPROCESS_END()
 

#define SUBPROCESS_BEGIN (   strname)
Value:
{ \
static struct process subprocess_subprocess = {NULL, strname}; \
subprocess_subprocess.thread = PROCESS_CURRENT()->thread; \
process_start(&subprocess_subprocess, NULL); \
PT_INIT(&subprocess_subprocess.pt); \
LC_SET(subprocess_subprocess.pt.lc); \
if(PROCESS_CURRENT() == &subprocess_subprocess) {
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