Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename some fields (change toto to toto_)
[simgrid.git] / src / kernel / activity / SynchroIo.cpp
index 3f4e149..130354d 100644 (file)
@@ -5,8 +5,7 @@
 
 #include "src/kernel/activity/SynchroIo.hpp"
 #include "simgrid/kernel/resource/Action.hpp"
-#include "src/simix/smx_private.hpp"
-#include "src/surf/surf_interface.hpp"
+#include "src/simix/smx_io_private.hpp"
 
 void simgrid::kernel::activity::IoImpl::suspend()
 {
@@ -22,13 +21,13 @@ void simgrid::kernel::activity::IoImpl::resume()
 
 void simgrid::kernel::activity::IoImpl::post()
 {
-  for (smx_simcall_t const& simcall : simcalls) {
+  for (smx_simcall_t const& simcall : simcalls_) {
     switch (simcall->call) {
       case SIMCALL_STORAGE_WRITE:
-        simcall_storage_write__set__result(simcall, surf_io->getCost());
+        simcall_storage_write__set__result(simcall, surf_io->get_cost());
         break;
       case SIMCALL_STORAGE_READ:
-        simcall_storage_read__set__result(simcall, surf_io->getCost());
+        simcall_storage_read__set__result(simcall, surf_io->get_cost());
         break;
       default:
         break;
@@ -37,10 +36,10 @@ void simgrid::kernel::activity::IoImpl::post()
 
   switch (surf_io->get_state()) {
     case simgrid::kernel::resource::Action::State::failed:
-      state = SIMIX_FAILED;
+      state_ = SIMIX_FAILED;
       break;
     case simgrid::kernel::resource::Action::State::done:
-      state = SIMIX_DONE;
+      state_ = SIMIX_DONE;
       break;
     default:
       THROW_IMPOSSIBLE;