-/*
- * \brief Frees private data of a host (internal call only)
- */
-void __MSG_host_priv_free(msg_host_priv_t priv)
-{
- if (priv == nullptr)
- return;
- unsigned int size = priv->dp_objs ? xbt_dict_size(priv->dp_objs) : 0;
- if (size > 0)
- XBT_WARN("dp_objs: %u pending task?", size);
- xbt_dict_free(&priv->dp_objs);
- if(priv->file_descriptor_table)
- delete priv->file_descriptor_table;
- free(priv);
-}
-
-/** \ingroup m_host_management
- * \brief Return the current number MSG hosts.
- */
-int MSG_get_host_number()
-{
- return sg_host_count();
-}
-
-/** \ingroup m_host_management
- * \brief Return a dynar containing all the hosts declared at a given point of time
- * \remark The host order in the returned array is generally different from the host creation/declaration order in the
- * XML platform (we use a hash table internally)
- */
-xbt_dynar_t MSG_hosts_as_dynar() {
- return sg_hosts_as_dynar();
-}
-
-/** \ingroup m_host_management
- * \brief Return the speed of the processor (in flop/s), regardless of the current load on the machine.
- */
-double MSG_host_get_speed(msg_host_t host) {
- return host->speed();
-}
-
-/** \ingroup m_host_management
- * \brief Return the speed of the processor (in flop/s), regardless of the current load on the machine.
- * Deprecated: use MSG_host_get_speed
- */
-double MSG_get_host_speed(msg_host_t host) {
- XBT_WARN("MSG_get_host_speed is deprecated: use MSG_host_get_speed");
- return MSG_host_get_speed(host);
-}