Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Stop making direct calls to SIMIX for host handling, use simcalls instead.
authorCristian Rosa <cristian@rtfm.org.ar>
Mon, 10 Sep 2012 12:57:51 +0000 (09:57 -0300)
committershenshei <paul.bedaride@gmail.com>
Wed, 28 Nov 2012 08:17:53 +0000 (09:17 +0100)
src/msg/msg_host.c

index a503903..6d9f463 100644 (file)
@@ -28,7 +28,7 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(msg);
 /********************************* Host **************************************/
 msg_host_t __MSG_host_create(smx_host_t workstation)
 {
-  const char *name = SIMIX_host_get_name(workstation);
+  const char *name = simcall_host_get_name(workstation);
   msg_host_t host = xbt_new0(s_msg_host_t, 1);
   s_msg_vm_t vm; // simply to compute the offset
 
@@ -77,7 +77,7 @@ msg_host_t MSG_get_host_by_name(const char *name)
  */
 msg_error_t MSG_host_set_data(msg_host_t host, void *data)
 {
-  SIMIX_host_set_data(host->smx_host,data);
+  simcall_host_set_data(host->smx_host,data);
 
   return MSG_OK;
 }
@@ -91,7 +91,7 @@ msg_error_t MSG_host_set_data(msg_host_t host, void *data)
  */
 void *MSG_host_get_data(msg_host_t host)
 {
-  return SIMIX_host_get_data(host->smx_host);
+  return simcall_host_get_data(host->smx_host);
 }
 
 /** \ingroup m_host_management
@@ -102,7 +102,7 @@ void *MSG_host_get_data(msg_host_t host)
    its name.
  */
 const char *MSG_host_get_name(msg_host_t host) {
-  return SIMIX_host_get_name(host->smx_host);
+  return simcall_host_get_name(host->smx_host);
 }
 
 /** \ingroup m_host_management