Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
refcount should be automatic now, and initialized to 0
[simgrid.git] / src / kernel / activity / ActivityImpl.hpp
index 1496c41..be03036 100644 (file)
@@ -41,7 +41,7 @@ namespace 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