Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ansi C declaration of variables (at the beginning of the blocks)
[simgrid.git] / src / xbt / xbt_ucontext.h
1 #ifndef _XBT_UCONTEXT_H\r
2 #define _XBT_UCONTEXT_H\r
3 \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
7 \r
8 typedef struct s_xbt_ucontext\r
9 {\r
10         XBT_CTX_BASE_T;\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
15 \r
16 \r
17 SG_END_DECL()\r
18 \r
19 #endif /* !_XBT_UCONTEXT_H */\r