X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/76f5257ad1d80be9046790e7df5a1b5f6d9584ba..970c8495eefefffaef85acdf1d6923799d95962a:/src/kernel/activity/IoImpl.cpp diff --git a/src/kernel/activity/IoImpl.cpp b/src/kernel/activity/IoImpl.cpp index db99089236..a4c845b958 100644 --- a/src/kernel/activity/IoImpl.cpp +++ b/src/kernel/activity/IoImpl.cpp @@ -20,12 +20,8 @@ void simcall_HANDLER_io_wait(smx_simcall_t simcall, simgrid::kernel::activity::I /* Associate this simcall to the synchro */ synchro->register_simcall(simcall); - /* set surf's synchro */ - if (MC_is_active() || MC_record_replay_is_active()) { + if (MC_is_active() || MC_record_replay_is_active()) synchro->state_ = SIMIX_DONE; - synchro->finish(); - return; - } /* If the synchro is already finished then perform the error handling */ if (synchro->state_ != SIMIX_RUNNING) @@ -104,7 +100,7 @@ void IoImpl::finish() } simcall->issuer->waiting_synchro = nullptr; - SIMIX_simcall_answer(simcall); + simcall->issuer->simcall_answer(); } }