Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
typo
[simgrid.git] / src / msg / host.c
index 0916b9e..2d700c4 100644 (file)
@@ -13,7 +13,8 @@
 
 /** \defgroup m_host_management Management functions of Hosts
  *  \brief This section describes the host structure of MSG
- * 
+ */
+/** @addtogroup m_host_management
  *     \htmlonly <!-- DOXYGEN_NAVBAR_LABEL="Hosts" --> \endhtmlonly
  * (#m_host_t) and the functions for managing it.
  *  
@@ -40,7 +41,7 @@ m_host_t __MSG_host_create(smx_host_t workstation, void *data)
   host->simdata = simdata;
   host->data = data;
 
-  simdata->host = workstation;
+  simdata->s_host = workstation;
 
   simdata->mbox = xbt_new0(xbt_fifo_t, msg_global->max_channel);
   for (i = 0; i < msg_global->max_channel; i++)
@@ -116,7 +117,7 @@ m_host_t MSG_host_self(void)
 }
 
 /*
- * Real function for destroy a host.
+ * Real function to destroy a host.
  * MSG_host_destroy is just  a front_end that also removes it from 
  * msg_global->host
  */
@@ -128,7 +129,7 @@ void __MSG_host_destroy(m_host_t host)
   xbt_assert0((host != NULL), "Invalid parameters");
 
   /* Clean Simulator data */
-       /* SIMIX host will be cleaned when MSG_clean calls SIMIX_clean */
+   /* SIMIX host will be cleaned when MSG_clean calls SIMIX_clean */
   simdata = (host)->simdata;
 
   for (i = 0; i < msg_global->max_channel; i++)
@@ -181,7 +182,7 @@ double MSG_get_host_speed(m_host_t h)
 {
   xbt_assert0((h!= NULL), "Invalid parameters");
 
-  return(SIMIX_host_get_speed(h->simdata->host));
+  return(SIMIX_host_get_speed(h->simdata->s_host));
 }
 
 /** \ingroup msg_gos_functions
@@ -192,5 +193,5 @@ double MSG_get_host_speed(m_host_t h)
 int MSG_host_is_avail (m_host_t h)
 {
   xbt_assert0((h!= NULL), "Invalid parameters");
-       return (SIMIX_host_get_state(h->simdata->host));
+       return (SIMIX_host_get_state(h->simdata->s_host));
 }