X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ab4a25d79a9621a8732588406fdbe922a458ef5b..db5279606a2a8b65207d8aeb4eb7ff4c7a8fec6f:/src/xbt/parmap.cpp diff --git a/src/xbt/parmap.cpp b/src/xbt/parmap.cpp index a0689f0c86..935149f0ab 100644 --- a/src/xbt/parmap.cpp +++ b/src/xbt/parmap.cpp @@ -4,6 +4,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include +#include #include "src/internal_config.h" #if HAVE_UNISTD_H @@ -15,8 +16,8 @@ #endif #if HAVE_FUTEX_H +#include #include -#include #endif #include "xbt/parmap.h" @@ -117,7 +118,7 @@ xbt_parmap_t xbt_parmap_new(unsigned int num_workers, e_xbt_parmap_mode_t mode) parmap->workers[0] = nullptr; #if HAVE_PTHREAD_SETAFFINITY int core_bind = 0; -#endif +#endif for (unsigned int i = 1; i < num_workers; i++) { xbt_parmap_thread_data_t data = xbt_new0(s_xbt_parmap_thread_data_t, 1); data->parmap = parmap; @@ -128,7 +129,7 @@ xbt_parmap_t xbt_parmap_new(unsigned int num_workers, e_xbt_parmap_mode_t mode) if (core_bind != xbt_os_get_numcores() - 1) core_bind++; else - core_bind = 0; + core_bind = 0; #endif } return parmap;