X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a21b8f25b77b99346b6b8c069400d7a46b3416b7..1847d1441271d076b3de449c8853031ea208ce8f:/src/kernel/activity/ActivityImpl.hpp diff --git a/src/kernel/activity/ActivityImpl.hpp b/src/kernel/activity/ActivityImpl.hpp index 1a28a5ff07..2a50de8059 100644 --- a/src/kernel/activity/ActivityImpl.hpp +++ b/src/kernel/activity/ActivityImpl.hpp @@ -31,16 +31,12 @@ namespace activity { virtual void resume()=0; virtual void post() =0; // What to do when a simcall terminates - /** @brief Increases the refcount */ - void ref(); - /** @brief Reduces the refcount */ - void unref(); - // boost::intrusive_ptr support: + // boost::intrusive_ptr support: friend void intrusive_ptr_add_ref(ActivityImpl * activity); friend void intrusive_ptr_release(ActivityImpl * activity); private: - std::atomic_int_fast32_t refcount_{1}; + std::atomic_int_fast32_t refcount_{0}; }; }}} // namespace simgrid::kernel::activity