simcall_comm_recv(MSG_process_self()->getImpl(), mailbox->getImpl(), task, nullptr, nullptr, nullptr, nullptr, timeout, rate);
XBT_DEBUG("Got task %s from %s",(*task)->name,mailbox->name());
(*task)->simdata->setNotUsed();
- SIMIX_comm_unref((*task)->simdata->comm);
}
catch (xbt_ex& e) {
switch (e.category) {
if (finished && comm->task_received != nullptr) {
/* I am the receiver */
(*comm->task_received)->simdata->setNotUsed();
- SIMIX_comm_unref(comm->s_comm);
+ comm->s_comm->unref();
}
}
catch (xbt_ex& e) {
if (status == MSG_OK && comm->task_received != nullptr) {
/* I am the receiver */
(*comm->task_received)->simdata->setNotUsed();
- SIMIX_comm_unref(comm->s_comm);
+ comm->s_comm->unref();
}
}
{
try {
simcall_comm_wait(comm->s_comm, timeout);
- SIMIX_comm_unref(comm->s_comm);
+ comm->s_comm->unref();
if (comm->task_received != nullptr) {
/* I am the receiver */
if (comm->task_received != nullptr) {
/* I am the receiver */
(*comm->task_received)->simdata->setNotUsed();
- SIMIX_comm_unref(comm->s_comm);
+ comm->s_comm->unref();
}
return finished_index;
simcall_set_category(comm, task->category);
t_simdata->comm = static_cast<simgrid::kernel::activity::CommImpl*>(comm);
simcall_comm_wait(comm, timeout);
- SIMIX_comm_unref(comm);
+ comm->unref();
}
catch (xbt_ex& e) {
switch (e.category) {