X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6691098f0f1d7f013f38899999d683c1b22ee11d..0f40cfec58fb170c3378cc63e83cb0a878552970:/src/simix/smx_network.c diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index d399b462f8..2c0e3a19b0 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -199,6 +199,7 @@ smx_action_t SIMIX_fifo_get_comm(xbt_fifo_t fifo, e_smx_comm_type_t type, xbt_fifo_remove_item(fifo, item); xbt_fifo_free_item(item); action->comm.refcount++; + action->comm.rdv_cpy = action->comm.rdv; action->comm.rdv = NULL; return action; } @@ -400,7 +401,6 @@ smx_action_t SIMIX_comm_isend(smx_process_t src_proc, smx_rdv_t rdv, other_action->state = SIMIX_READY; other_action->comm.dst_proc=rdv->permanent_receiver; other_action->comm.refcount++; - other_action->comm.rdv = rdv; xbt_fifo_push(rdv->done_comm_fifo,other_action); other_action->comm.rdv=rdv; XBT_DEBUG("pushing a message into the permanent receive fifo %p, comm %p \n", rdv, &(other_action->comm));