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
simcall_execution_destroy() -> simgrid::simix::Exec::unref()
[simgrid.git]
/
src
/
simix
/
SynchroExec.cpp
diff --git
a/src/simix/SynchroExec.cpp
b/src/simix/SynchroExec.cpp
index
6dfa770
..
02ce125
100644
(file)
--- a/
src/simix/SynchroExec.cpp
+++ b/
src/simix/SynchroExec.cpp
@@
-25,3
+25,15
@@
double simgrid::simix::Exec::remains()
return 0;
}
+
+void simgrid::simix::Exec::unref()
+{
+ refcount--;
+ if (refcount > 0)
+ return;
+
+ if (surf_exec)
+ surf_exec->unref();
+
+ delete this;
+}