X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3f9587e71330e7471ef675d2652cee260a0e3a96..772fbe2c6395ac920d8e7907dc39749d458f02b6:/include/simgrid/s4u/host.hpp diff --git a/include/simgrid/s4u/host.hpp b/include/simgrid/s4u/host.hpp index 23e91e25bb..77147d3346 100644 --- a/include/simgrid/s4u/host.hpp +++ b/include/simgrid/s4u/host.hpp @@ -103,6 +103,7 @@ public: boost::unordered_map const &mountedStorages(); void routeTo(Host * dest, std::vector * links, double* latency); + void routeTo(Host * dest, std::vector * links, double* latency); private: simgrid::xbt::string name_ = "noname"; @@ -116,18 +117,19 @@ public: /** DO NOT USE DIRECTLY (@todo: these should be protected, once our code is clean) */ kernel::routing::NetPoint* pimpl_netpoint = nullptr; -public: /*** Called on each newly created object */ static simgrid::xbt::signal onCreation; /*** Called just before destructing an object */ static simgrid::xbt::signal onDestruction; /*** Called when the machine is turned on or off */ static simgrid::xbt::signal onStateChange; + /*** Called when the speed of the machine is changed + * (either because of a pstate switch or because of an external load event coming from the profile) */ + static simgrid::xbt::signal onSpeedChange; }; }} // namespace simgrid::s4u -extern int MSG_HOST_LEVEL; extern int USER_HOST_LEVEL; #endif /* SIMGRID_S4U_HOST_HPP */