#include <atomic>
-#include "internal_config.h"
+#include "src/internal_config.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "xbt/dynar.h"
#include "xbt/xbt_os_thread.h"
#include "xbt/sysdep.h"
-#include "simix/smx_private.h"
+#include "src/simix/smx_private.h"
+#include "src/simix/smx_private.hpp"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_parmap, xbt, "parmap: parallel map");
static void futex_wake(unsigned *uaddr, unsigned val);
#endif
+#ifndef _MSC_VER
static void xbt_parmap_busy_master_wait(xbt_parmap_t parmap);
static void xbt_parmap_busy_worker_signal(xbt_parmap_t parmap);
static void xbt_parmap_busy_master_signal(xbt_parmap_t parmap);
static void xbt_parmap_busy_worker_wait(xbt_parmap_t parmap, unsigned round);
+#endif
#ifdef HAVE_MC
static void xbt_parmap_mc_work(xbt_parmap_t parmap, int worker_id);
#endif
case XBT_PARMAP_BUSY_WAIT:
+#ifndef _MSC_VER
parmap->master_wait_f = xbt_parmap_busy_master_wait;
parmap->worker_signal_f = xbt_parmap_busy_worker_signal;
parmap->master_signal_f = xbt_parmap_busy_master_signal;
xbt_os_cond_destroy(parmap->done_cond);
xbt_os_mutex_destroy(parmap->done_mutex);
break;
+#else
+ xbt_die("Busy waiting not implemented on Windows yet.");
+#endif
case XBT_PARMAP_DEFAULT:
THROW_IMPOSSIBLE;
}
#endif
+#ifndef _MSC_VER
/**
* \brief Starts the parmap: waits for all workers to be ready and returns.
*
xbt_os_thread_yield();
}
}
+#endif /* ! _MSC_VER */