Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move last functions in msg_host.cpp to the S4U C interface
[simgrid.git] / src / msg / msg_host.cpp
diff --git a/src/msg/msg_host.cpp b/src/msg/msg_host.cpp
deleted file mode 100644 (file)
index 784265c..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/* Copyright (c) 2004-2017. The 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. */
-
-#include "simgrid/s4u/Host.hpp"
-#include "simgrid/s4u/Storage.hpp"
-#include "src/msg/msg_private.hpp"
-#include "src/simix/ActorImpl.hpp"
-#include "src/simix/smx_host_private.hpp"
-
-XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(msg);
-
-extern "C" {
-
-/** @addtogroup m_host_management
- * (#msg_host_t) and the functions for managing it.
- *
- *  A <em>location</em> (or <em>host</em>) is any possible place where  a process may run. Thus it may be represented
- *  as a <em>physical resource with computing capabilities</em>, some <em>mailboxes</em> to enable running process to
- *  communicate with remote ones, and some <em>private data</em> that can be only accessed by local process.
- *  \see msg_host_t
- */
-
-/********************************* Host **************************************/
-
-/** \ingroup m_host_management
- * \brief Return the list of processes attached to an host.
- *
- * \param host a host
- * \param whereto a dynar in which we should push processes living on that host
- */
-void MSG_host_get_process_list(msg_host_t host, xbt_dynar_t whereto)
-{
-  xbt_assert((host != nullptr), "Invalid parameters");
-  for (auto& actor : host->extension<simgrid::simix::Host>()->process_list) {
-    msg_process_t p = actor.ciface();
-    xbt_dynar_push(whereto, &p);
-  }
-}
-
-/** \ingroup m_host_management
- * \brief Return the speed of the processor (in flop/s) at a given pstate. See also @ref plugin_energy.
- *
- * \param  host host to test
- * \param pstate_index pstate to test
- * \return Returns the processor speed associated with pstate_index
- */
-double MSG_host_get_power_peak_at(msg_host_t host, int pstate_index) {
-  xbt_assert((host != nullptr), "Invalid parameters (host is nullptr)");
-  return host->getPstateSpeed(pstate_index);
-}
-
-}