X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/18c57b27dd71ee7839c6a90368c845886a87d638..ede1c3b3c0e65b32ffa025b63d0850501225fb0a:/src/xbt/xbt_sg_synchro.c diff --git a/src/xbt/xbt_sg_synchro.c b/src/xbt/xbt_sg_synchro.c index 34dba4a1cc..f0f87efa7e 100644 --- a/src/xbt/xbt_sg_synchro.c +++ b/src/xbt/xbt_sg_synchro.c @@ -11,10 +11,7 @@ #include "xbt/ex.h" -#include "xbt/synchro.h" /* This module */ - -#include "simix/simix.h" /* used implementation */ -#include "simix/datatypes.h" +#include "simgrid/simix.h" /* used implementation */ #include "../simix/smx_private.h" /* FIXME */ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_sync, xbt, @@ -29,7 +26,7 @@ typedef struct s_xbt_thread_ { void *userparam; void *father_data; /* stuff to allow other people to wait on me with xbt_thread_join */ - int joinable:1, done:1; + unsigned joinable:1, done:1; xbt_cond_t cond; xbt_mutex_t mutex; } s_xbt_thread_t; @@ -66,8 +63,8 @@ xbt_thread_t xbt_thread_create(const char *name, void_f_pvoid_t code, /* char*name = bprintf("%s#%p",SIMIX_process_self_get_name(), param); */ simcall_process_create(&res->s_process, name, xbt_thread_create_wrapper, res, - SIMIX_host_self_get_name(), 0, NULL, - /*props */ NULL); + SIMIX_host_self_get_name(), -1.0, 0, NULL, + /*props */ NULL,0); res->joinable = joinable; res->done = 0; res->cond = xbt_cond_init();