X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/839877aee607c198ffda1d836d72976831819825..64561039d3dec9e50b4eaf1b78b3edef71898383:/src/xbt/parmap.c diff --git a/src/xbt/parmap.c b/src/xbt/parmap.c index 3012cabce4..8492f38f2a 100644 --- a/src/xbt/parmap.c +++ b/src/xbt/parmap.c @@ -5,7 +5,10 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "gras_config.h" #include +#ifndef _XBT_WIN32 #include +#endif + #ifdef HAVE_FUTEX_H #include #else @@ -92,6 +95,7 @@ static void *_xbt_parmap_worker_main(void *arg) /* Fetch a worker id */ worker_id = __sync_fetch_and_add(&parmap->workers_max_id, 1); + xbt_os_thread_set_extra_data((void *)(unsigned long)worker_id); DEBUG1("New worker thread created (%u)", worker_id);