Go to the documentation of this file.
53 #ifndef __SUBPROCESS_H__
54 #define __SUBPROCESS_H__
56 #define SUBPROCESS_BEGIN(strname) \
58 static struct process subprocess_subprocess = {NULL, strname}; \
59 subprocess_subprocess.thread = PROCESS_CURRENT()->thread; \
60 process_start(&subprocess_subprocess, NULL); \
61 PT_INIT(&subprocess_subprocess.pt); \
62 LC_SET(subprocess_subprocess.pt.lc); \
63 if(PROCESS_CURRENT() == &subprocess_subprocess) {
65 #define SUBPROCESS_END() \