X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f1e469ce075c0a1ad21a7fd0fdb587f9a3cb5289..79853b8925152a5b89d3f8f44d64ffaf284a0196:/include/simgrid/s4u/Host.hpp diff --git a/include/simgrid/s4u/Host.hpp b/include/simgrid/s4u/Host.hpp index 999098f3eb..ab1dd5e1a9 100644 --- a/include/simgrid/s4u/Host.hpp +++ b/include/simgrid/s4u/Host.hpp @@ -83,7 +83,7 @@ public: /** Returns if that host is currently up and running */ bool isOn(); /** Returns if that host is currently down and offline */ - bool isOff() { return !isOn(); } + bool isOff() { return not isOn(); } double speed(); int coreCount(); @@ -119,13 +119,13 @@ public: /** DO NOT USE DIRECTLY (@todo: these should be protected, once our code is clean) */ kernel::routing::NetPoint* pimpl_netpoint = nullptr; - /*** Called on each newly created object */ + /*** Called on each newly created host */ static simgrid::xbt::signal onCreation; - /*** Called just before destructing an object */ + /*** Called just before destructing an host */ static simgrid::xbt::signal onDestruction; - /*** Called when the machine is turned on or off */ + /*** Called when the machine is turned on or off (called AFTER the change) */ static simgrid::xbt::signal onStateChange; - /*** Called when the speed of the machine is changed + /*** Called when the speed of the machine is changed (called AFTER the change) * (either because of a pstate switch or because of an external load event coming from the profile) */ static simgrid::xbt::signal onSpeedChange; };