* under the terms of the license (GNU LGPL) which comes with this package. */
#include <atomic>
+#include <climits>
#include "src/internal_config.h"
#if HAVE_UNISTD_H
#endif
#if HAVE_FUTEX_H
+#include <climits>
#include <linux/futex.h>
-#include <limits.h>
#endif
#include "xbt/parmap.h"
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;
if (core_bind != xbt_os_get_numcores() - 1)
core_bind++;
else
- core_bind = 0;
+ core_bind = 0;
#endif
}
return parmap;