1 #ifndef _XBT_UCONTEXT_H
\r
2 #define _XBT_UCONTEXT_H
\r
4 #include "ucontext_stack.h" /* loads context system definitions */
\r
5 #include <ucontext.h> /* context relative declarations */
\r
6 #define STACK_SIZE 128*1024 /* lower this if you want to reduce the memory consumption */
\r
8 typedef struct s_xbt_ucontext
\r
11 ucontext_t uc; /* the thread that execute the code */
\r
12 char stack[STACK_SIZE]; /* the thread stack size */
\r
13 struct s_xbt_ucontext* prev; /* the previous thread */
\r
14 }s_xbt_ucontext_t,* xbt_ucontext_t;
\r
19 #endif /* !_XBT_UCONTEXT_H */
\r