A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rewrite a comment
[simgrid.git]
/
src
/
xbt
/
xbt_thread_context.c
diff --git
a/src/xbt/xbt_thread_context.c
b/src/xbt/xbt_thread_context.c
index
d69597c
..
60e6b26
100644
(file)
--- a/
src/xbt/xbt_thread_context.c
+++ b/
src/xbt/xbt_thread_context.c
@@
-4,6
+4,7
@@
\r
#include "portable.h" /* loads context system definitions */
\r
#include "xbt/swag.h"
\r
\r
#include "portable.h" /* loads context system definitions */
\r
#include "xbt/swag.h"
\r
+#include "xbt/xbt_os_thread.h"
\r
\r
\r
typedef struct s_xbt_thread_context {
\r
\r
\r
typedef struct s_xbt_thread_context {
\r
@@
-262,7
+263,7
@@
xbt_thread_context_wrapper(void* param)
{
\r
xbt_thread_context_t context = (xbt_thread_context_t)param;
\r
\r
{
\r
xbt_thread_context_t context = (xbt_thread_context_t)param;
\r
\r
- /*
signal its starting to the maestro and wait to start its job
*/
\r
+ /*
Tell the maestro we are starting, and wait for its green light
*/
\r
xbt_os_sem_release(context->end);
\r
xbt_os_sem_acquire(context->begin);
\r
\r
xbt_os_sem_release(context->end);
\r
xbt_os_sem_acquire(context->begin);
\r
\r