X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6b3dd9b27c5fe2b1000b169b24e248be102a1d15..b0d7c3272f2838a9252c0cf650b9231b07bea4d3:/src/simix/popping_generated.cpp diff --git a/src/simix/popping_generated.cpp b/src/simix/popping_generated.cpp index 0aa70b73b6..8f47b97cd5 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/SimcallInspector.hpp" +#include "src/mc/checker/SimcallObserver.hpp" XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix_popping); @@ -38,8 +38,6 @@ constexpr std::array simcall_names{{ "Simcall::COMM_WAIT", "Simcall::COMM_TEST", "Simcall::COMM_TESTANY", - "Simcall::MUTEX_LOCK", - "Simcall::MUTEX_TRYLOCK", "Simcall::COND_WAIT", "Simcall::COND_WAIT_TIMEOUT", "Simcall::SEM_ACQUIRE", @@ -56,9 +54,9 @@ constexpr std::array simcall_names{{ void simgrid::kernel::actor::ActorImpl::simcall_handle(int times_considered_) { XBT_DEBUG("Handling simcall %p: %s", &simcall_, SIMIX_simcall_name(simcall_.call_)); - SIMCALL_SET_MC_VALUE(simcall_, times_considered_); - if (simcall_.inspector_ != nullptr) - simcall_.inspector_->prepare(times_considered_); + simcall_.mc_value_ = times_considered_; + if (simcall_.observer_ != nullptr) + simcall_.observer_->prepare(times_considered_); if (context_->wannadie()) return; switch (simcall_.call_) { @@ -100,15 +98,6 @@ void simgrid::kernel::actor::ActorImpl::simcall_handle(int times_considered_) simcall_HANDLER_comm_testany(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1])); break; - case Simcall::MUTEX_LOCK: - simcall_HANDLER_mutex_lock(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0])); - break; - - case Simcall::MUTEX_TRYLOCK: - simgrid::simix::marshal(simcall_.result_, simcall_HANDLER_mutex_trylock(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]))); - simcall_answer(); - break; - case Simcall::COND_WAIT: simcall_HANDLER_cond_wait(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1])); break;