Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Mark actors as auto_restart when recreating them on restart.
[simgrid.git] / src / kernel / activity / IoImpl.cpp
index 7c17090..d762815 100644 (file)
@@ -16,14 +16,14 @@ simgrid::kernel::activity::IoImpl::IoImpl(std::string name, resource::Action* su
 
   surf_action_->set_data(this);
 
-  XBT_DEBUG("Create exec %p", this);
+  XBT_DEBUG("Create io %p", this);
 }
 
 simgrid::kernel::activity::IoImpl::~IoImpl()
 {
   if (surf_action_ != nullptr)
     surf_action_->unref();
-  XBT_DEBUG("Destroy exec %p", this);
+  XBT_DEBUG("Destroy io %p", this);
 }
 
 void simgrid::kernel::activity::IoImpl::cancel()
@@ -64,6 +64,8 @@ void simgrid::kernel::activity::IoImpl::post()
       THROW_IMPOSSIBLE;
       break;
   }
+  on_completion(this);
+
   SIMIX_io_finish(this);
 }
 /*************