X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/89f389e6348fde6457d692ef1f0a81d55f658b1d..9ec5b7998f76abfec0e52457dd2c17a4ef0c88fc:/src/simix/popping_generated.cpp diff --git a/src/simix/popping_generated.cpp b/src/simix/popping_generated.cpp index 5e3d98b25c..9b9a7b5d8f 100644 --- a/src/simix/popping_generated.cpp +++ b/src/simix/popping_generated.cpp @@ -21,7 +21,7 @@ #include "src/mc/mc_forward.hpp" #endif #include "src/kernel/activity/ConditionVariableImpl.hpp" -#include "src/mc/checker/SimcallObserver.hpp" +#include "src/kernel/actor/SimcallObserver.hpp" XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix_popping); @@ -29,7 +29,6 @@ using simgrid::simix::Simcall; /** @brief Simcalls' names (generated from src/simix/simcalls.in) */ constexpr std::array simcall_names{{ "Simcall::NONE", - "Simcall::EXECUTION_WAITANY_FOR", "Simcall::COMM_RECV", "Simcall::COMM_IRECV", "Simcall::COMM_SEND", @@ -47,19 +46,15 @@ constexpr std::array simcall_names{{ * * This function is generated from src/simix/simcalls.in */ -void simgrid::kernel::actor::ActorImpl::simcall_handle(int times_considered_) +void simgrid::kernel::actor::ActorImpl::simcall_handle(int times_considered) { - XBT_DEBUG("Handling simcall %p: %s", &simcall_, SIMIX_simcall_name(simcall_.call_)); - simcall_.mc_value_ = times_considered_; + XBT_DEBUG("Handling simcall %p: %s", &simcall_, SIMIX_simcall_name(simcall_)); + simcall_.mc_value_ = times_considered; if (simcall_.observer_ != nullptr) - simcall_.observer_->prepare(times_considered_); + simcall_.observer_->prepare(times_considered); if (context_->wannadie()) return; switch (simcall_.call_) { - case Simcall::EXECUTION_WAITANY_FOR: - simcall_HANDLER_execution_waitany_for(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]), simgrid::simix::unmarshal(simcall_.args_[2])); - break; - case Simcall::COMM_RECV: simcall_HANDLER_comm_recv(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]), simgrid::simix::unmarshal(simcall_.args_[2]), simgrid::simix::unmarshal(simcall_.args_[3]), simgrid::simix::unmarshal(simcall_.args_[4]), simgrid::simix::unmarshal(simcall_.args_[5]), simgrid::simix::unmarshal(simcall_.args_[6]), simgrid::simix::unmarshal(simcall_.args_[7]), simgrid::simix::unmarshal(simcall_.args_[8])); break; @@ -79,11 +74,13 @@ void simgrid::kernel::actor::ActorImpl::simcall_handle(int times_considered_) break; case Simcall::COMM_TEST: - simcall_HANDLER_comm_test(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0])); + simgrid::simix::marshal(simcall_.result_, simcall_HANDLER_comm_test(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]))); + simcall_answer(); break; case Simcall::COMM_TESTANY: - simcall_HANDLER_comm_testany(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1])); + simgrid::simix::marshal(simcall_.result_, simcall_HANDLER_comm_testany(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]))); + simcall_answer(); break; case Simcall::COMM_WAITANY: