A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[surf] Triggers the destructed callbacks on the full object
[simgrid.git]
/
src
/
surf
/
host_interface.cpp
diff --git
a/src/surf/host_interface.cpp
b/src/surf/host_interface.cpp
index
134e106
..
7e9985a
100644
(file)
--- 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;
}
p_params.ramsize = 0;
}
-Host::~Host(){
+void Host::onDie()
+{
surf_callback_emit(hostDestructedCallbacks, this);
surf_callback_emit(hostDestructedCallbacks, this);
+ Resource::onDie();
+}
+
+Host::~Host()
+{
+ this->die();
}
void Host::attach(simgrid::Host* host)
}
void Host::attach(simgrid::Host* host)