Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
SIMIX call + MSG function + Java binding for get_core
[simgrid.git] / src / msg / msg_host.c
index a767553..6f01ec9 100644 (file)
@@ -202,6 +202,17 @@ double MSG_get_host_speed(msg_host_t h)
   return (simcall_host_get_speed(h));
 }
 
+
+/** \ingroup m_host_management
+ * \brief Return the number of core.
+ */
+int MSG_get_host_core(msg_host_t h)
+{
+  xbt_assert((h != NULL), "Invalid parameters");
+
+  return (simcall_host_get_core(h));
+}
+
 /** \ingroup m_host_management
  * \brief Returns the value of a given host property
  *