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_thread_context.h
1 #ifndef _XBT_THREAD_CONTEXT_H\r
2 #define _XBT_THREAD_CONTEXT_H\r
3 \r
4 #include "portable.h"           /* loads context system definitions                                                                                                                     */\r
5 #include "xbt/xbt_os_thread.h"          /* declaration of the xbt native semaphore and native thread                                                            */\r
6 #include "xbt/swag.h"\r
7 \r
8 SG_BEGIN_DECL()\r
9 \r
10 \r
11 typedef struct s_xbt_thread_context\r
12 {\r
13         XBT_CTX_BASE_T;\r
14         xbt_os_thread_t thread;                 /* a plain dumb thread (portable to posix or windows)                                                                           */\r
15         xbt_os_sem_t begin;                             /* this semaphore is used to schedule/yield the process                                                                         */\r
16         xbt_os_sem_t end;                               /* this semaphore is used to schedule/unschedule the process                                                            */\r
17 }s_xbt_thread_context_t,* xbt_thread_context_t;\r
18 \r
19 SG_END_DECL()\r
20 \r
21 #endif /* !_XBT_THREAD_CONTEXT_H */\r