1 #ifndef _XBT_THREAD_CONTEXT_H
\r
2 #define _XBT_THREAD_CONTEXT_H
\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
11 typedef struct s_xbt_thread_context
\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
21 #endif /* !_XBT_THREAD_CONTEXT_H */
\r