{
simgrid::kernel::activity::ActivityImplPtr comm = simcall_HANDLER_comm_isend(
simcall, src, mbox, task_size, rate, src_buff, src_buff_size, match_fun, nullptr, copy_data_fun, data, false);
- SIMCALL_SET_MC_VALUE(*simcall, 0);
+ simcall->mc_value_ = 0;
simcall_HANDLER_comm_wait(simcall, static_cast<simgrid::kernel::activity::CommImpl*>(comm.get()), timeout);
}
{
simgrid::kernel::activity::ActivityImplPtr comm = simcall_HANDLER_comm_irecv(
simcall, receiver, mbox, dst_buff, dst_buff_size, match_fun, copy_data_fun, data, rate);
- SIMCALL_SET_MC_VALUE(*simcall, 0);
+ simcall->mc_value_ = 0;
simcall_HANDLER_comm_wait(simcall, static_cast<simgrid::kernel::activity::CommImpl*>(comm.get()), timeout);
}
comm->register_simcall(simcall);
if (MC_is_active() || MC_record_replay_is_active()) {
- int idx = SIMCALL_GET_MC_VALUE(*simcall);
+ int idx = simcall->mc_value_;
if (idx == 0) {
comm->state_ = simgrid::kernel::activity::State::DONE;
} else {
simcall_comm_testany__set__result(simcall, -1);
if (MC_is_active() || MC_record_replay_is_active()) {
- int idx = SIMCALL_GET_MC_VALUE(*simcall);
+ int idx = simcall->mc_value_;
if (idx == -1) {
simcall->issuer_->simcall_answer();
} else {
if (MC_is_active() || MC_record_replay_is_active()) {
if (timeout > 0.0)
xbt_die("Timeout not implemented for waitany in the model-checker");
- int idx = SIMCALL_GET_MC_VALUE(*simcall);
+ int idx = simcall->mc_value_;
auto* comm = comms[idx];
comm->simcalls_.push_back(simcall);
simcall_comm_waitany__set__result(simcall, idx);
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_);
+ simcall_.mc_value_ = times_considered_;
if (simcall_.observer_ != nullptr)
simcall_.observer_->prepare(times_considered_);
if (context_->wannadie())
fd.write('void simgrid::kernel::actor::ActorImpl::simcall_handle(int times_considered_)\n')
fd.write('{\n')
fd.write(' XBT_DEBUG("Handling simcall %p: %s", &simcall_, SIMIX_simcall_name(simcall_.call_));\n')
- fd.write(' SIMCALL_SET_MC_VALUE(simcall_, times_considered_);\n')
+ fd.write(' simcall_.mc_value_ = times_considered_;\n')
fd.write(' if (simcall_.observer_ != nullptr)\n')
fd.write(' simcall_.observer_->prepare(times_considered_);\n')