X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b9bd3bea7e7a0ad74c2e978c2e8fcb21b370862c..5aaf4dee2a063da0b9e1dc52672872a43a0a8e10:/src/simix/smx_process.cpp diff --git a/src/simix/smx_process.cpp b/src/simix/smx_process.cpp index 1bd0a3b6a1..95e411c706 100644 --- a/src/simix/smx_process.cpp +++ b/src/simix/smx_process.cpp @@ -83,7 +83,7 @@ void SIMIX_process_cleanup(smx_process_t process) if (comm->detached) XBT_DEBUG("Don't destroy it since it's a detached comm and I'm the sender"); else - SIMIX_comm_destroy(comm); + comm->unref(); } else if (comm->dst_proc == process){ @@ -95,7 +95,7 @@ void SIMIX_process_cleanup(smx_process_t process) /* the comm will be freed right now, remove it from the sender */ xbt_fifo_remove(comm->src_proc->comms, comm); } - SIMIX_comm_destroy(comm); + comm->unref(); } else { xbt_die("Communication synchro %p is in my list but I'm not the sender nor the receiver", synchro); } @@ -508,7 +508,7 @@ void SIMIX_process_kill(smx_process_t process, smx_process_t issuer) { xbt_fifo_remove(process->comms, process->waiting_synchro); comm->cancel(); xbt_fifo_remove(process->waiting_synchro->simcalls, &process->simcall); - SIMIX_comm_destroy(process->waiting_synchro); + comm->unref(); } else if (sleep != nullptr) { SIMIX_process_sleep_destroy(process->waiting_synchro);