Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cleanup Action refcounting
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 25 Mar 2018 20:41:11 +0000 (22:41 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 25 Mar 2018 20:41:16 +0000 (22:41 +0200)
commit79739657970ffcf609c1e90f6112e8f5a8583801
tree370a1cc6c8edf316d4e681785c5df9232b80681a
parent5e7d79b763a5f55d1afb579d2b5a8d30ccfe869c
cleanup Action refcounting

Previously, subclasses did override unref() to do some cleanups on
destruction. This required to have refcount_ protected for them to
mess with it.

Instead, the cleanups go to the various destructors, where they
belong. The refcounting can be made private to Action as it should.
include/simgrid/kernel/resource/Action.hpp
src/kernel/resource/Action.cpp
src/surf/cpu_ti.cpp
src/surf/cpu_ti.hpp
src/surf/network_ns3.cpp
src/surf/network_ns3.hpp
src/surf/ptask_L07.cpp
src/surf/ptask_L07.hpp
src/surf/storage_n11.cpp
src/surf/storage_n11.hpp