+/* smx_user.c - public interface to simix */
+
+/* Copyright (c) 2010, 2011. Da SimGrid team. All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+#ifndef _SVID_SOURCE
+# define _SVID_SOURCE /* strdup() */
+#endif
+#ifndef _ISOC99_SOURCE
+# define _ISOC99_SOURCE /* isfinite() */
+#endif
+#ifndef _ISO_C99_SOURCE
+# define _ISO_C99_SOURCE /* isfinite() */
+#endif
+#include <math.h> /* isfinite() */
+
#include "private.h"
#include "mc/mc.h"
+
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix);
static const char* request_names[] = {
* \param source name of the previous host
* \param dest name of the new host
*/
-void SIMIX_req_process_change_host(smx_process_t process, const char *source, const char *dest)
+void SIMIX_req_process_change_host(smx_process_t process, smx_host_t dest)
{
smx_req_t req = SIMIX_req_mine();
req->call = REQ_PROCESS_CHANGE_HOST;
req->process_change_host.process = process;
- req->process_change_host.source = source;
req->process_change_host.dest = dest;
SIMIX_request_push();
}
{
xbt_assert(comm, "Invalid parameter");
- /* FIXME remove this request type: comms are auto-destroyed now,
- * but what happens with unfinished comms? */
+ /* FIXME remove this request type: comms are auto-destroyed now */
/*
smx_req_t req = SIMIX_req_mine();