X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d0e24e71be9100371207e703e25cab7d612f521c..ccc1670e4bf36086f1f524b5ef004d5210415488:/src/surf/host_interface.cpp diff --git a/src/surf/host_interface.cpp b/src/surf/host_interface.cpp index 134e10683f..7e9985a2af 100644 --- a/src/surf/host_interface.cpp +++ b/src/surf/host_interface.cpp @@ -107,8 +107,15 @@ Host::Host(simgrid::surf::Model *model, const char *name, xbt_dict_t props, lmm_ p_params.ramsize = 0; } -Host::~Host(){ +void Host::onDie() +{ surf_callback_emit(hostDestructedCallbacks, this); + Resource::onDie(); +} + +Host::~Host() +{ + this->die(); } void Host::attach(simgrid::Host* host)