X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6260d187764dc644d699e1a53454f7efdcc682df..40ee10e13b61bfb28374d96ade010a262b5abd44:/include/simgrid/s4u/Host.hpp diff --git a/include/simgrid/s4u/Host.hpp b/include/simgrid/s4u/Host.hpp index d29468ece9..28ce4691ef 100644 --- a/include/simgrid/s4u/Host.hpp +++ b/include/simgrid/s4u/Host.hpp @@ -51,6 +51,11 @@ class XBT_PUBLIC Host : public xbt::Extendable { friend kernel::resource::CpuAction; // signal exec_state_changed #endif + static xbt::signal on_creation; + static xbt::signal on_destruction; + xbt::signal on_this_destruction; + static xbt::signal on_exec_state_change; + public: explicit Host(kernel::resource::HostImpl* pimpl) : pimpl_(pimpl) {} @@ -58,11 +63,6 @@ protected: virtual ~Host(); // Call destroy() instead of manually deleting it. Host* set_netpoint(kernel::routing::NetPoint* netpoint); - static xbt::signal on_creation; - static xbt::signal on_destruction; - xbt::signal on_this_destruction; - static xbt::signal on_exec_state_change; - public: static xbt::signal on_speed_change; xbt::signal on_this_speed_change; @@ -77,7 +77,7 @@ public: { on_onoff.connect(cb); } - XBT_ATTRIB_DEPRECATED_v337("Please use on_onoff_cb() instead") static void on_state_change_cb( + XBT_ATTRIB_DEPRECATED_v338("Please use on_onoff_cb() instead") static void on_state_change_cb( const std::function& cb) { on_onoff.connect(cb);