Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make sure refcount of a comm is really 1 when initialized
authorAugustin Degomme <degomme@idpann.imag.fr>
Mon, 8 Jul 2013 14:15:45 +0000 (16:15 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Mon, 8 Jul 2013 14:15:45 +0000 (16:15 +0200)
src/smpi/smpi_comm.c

index db48e0f..8e2b956 100644 (file)
@@ -44,7 +44,7 @@ MPI_Comm smpi_comm_new(MPI_Group group)
   comm = xbt_new(s_smpi_mpi_communicator_t, 1);
   comm->group = group;
   smpi_group_use(comm->group);
-  smpi_comm_use(comm);
+  comm->refcount=1;
   return comm;
 }