A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
generalize mark_as_deleted call
[simgrid.git]
/
src
/
smpi
/
bindings
/
smpi_pmpi_type.cpp
diff --git
a/src/smpi/bindings/smpi_pmpi_type.cpp
b/src/smpi/bindings/smpi_pmpi_type.cpp
index
aac1aed
..
04208cb
100644
(file)
--- a/
src/smpi/bindings/smpi_pmpi_type.cpp
+++ b/
src/smpi/bindings/smpi_pmpi_type.cpp
@@
-17,6
+17,7
@@
int PMPI_Type_free(MPI_Datatype * datatype)
if (*datatype == MPI_DATATYPE_NULL || (*datatype)->flags() & DT_FLAG_PREDEFINED) {
return MPI_ERR_TYPE;
} else {
+ (*datatype)->mark_as_deleted();
simgrid::smpi::Datatype::unref(*datatype);
*datatype=MPI_DATATYPE_NULL;
return MPI_SUCCESS;