Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Another step toward working CommPtr. chord example is broken ATM
[simgrid.git] / src / kernel / activity / ActivityImpl.hpp
index 4791484..13c284a 100644 (file)
@@ -48,8 +48,11 @@ namespace activity {
         delete activity;
     }
 
+    /** @brief Increase the refcount */
     void ref();
-    void unref();
+    /** @brief Reduce the refcount; returns true if the object was destroyed */
+    bool unref();
+
   private:
     std::atomic_int_fast32_t refcount_{1};
     int refcount = 1;