X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/39c935d6d5ee86d153f6f7e6a10d723ae7c57f6f..82fafbab5f8ce1530037fd245d678e917119caa0:/src/simix/popping_private.hpp diff --git a/src/simix/popping_private.hpp b/src/simix/popping_private.hpp index 043c452344..a0f1add9d2 100644 --- a/src/simix/popping_private.hpp +++ b/src/simix/popping_private.hpp @@ -44,18 +44,16 @@ union u_smx_scalar { * @brief Represents a simcall to the kernel. */ struct s_smx_simcall { - simgrid::simix::Simcall call_ = simgrid::simix::Simcall::NONE; - smx_actor_t issuer_ = nullptr; - smx_timer_t timeout_cb_ = nullptr; // Callback to timeouts - simgrid::mc::SimcallInspector* inspector_ = nullptr; // makes that simcall observable by the MC - int mc_value_ = 0; - std::array args_ = {}; - u_smx_scalar result_ = {}; + simgrid::simix::Simcall call_ = simgrid::simix::Simcall::NONE; + smx_actor_t issuer_ = nullptr; + smx_timer_t timeout_cb_ = nullptr; // Callback to timeouts + simgrid::mc::SimcallObserver* observer_ = nullptr; // makes that simcall observable by the MC + unsigned int mc_max_consider_ = 0; // How many times this simcall should be used. If >1, this will be a fork. + int mc_value_ = 0; + std::array args_ = {}; + u_smx_scalar result_ = {}; }; -#define SIMCALL_SET_MC_VALUE(simcall, value) ((simcall).mc_value_ = (value)) -#define SIMCALL_GET_MC_VALUE(simcall) ((simcall).mc_value_) - /******************************** General *************************************/ XBT_PRIVATE const char* SIMIX_simcall_name(simgrid::simix::Simcall kind); @@ -169,11 +167,11 @@ template inline void marshal(u_smx_scalar& simcall, T const& value) { return marshal(type(), simcall, value); } -template inline typename std::remove_reference::type unmarshal(u_smx_scalar& simcall) +template inline typename std::remove_reference_t unmarshal(u_smx_scalar& simcall) { return unmarshal(type(), simcall); } -template inline typename std::remove_reference::type unmarshal_raw(u_smx_scalar& simcall) +template inline typename std::remove_reference_t unmarshal_raw(u_smx_scalar& simcall) { return unmarshal(type(), simcall); }