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
Try to fix a failure about mutex freed too early in RMA
[simgrid.git]
/
src
/
smpi
/
mpi
/
smpi_win.cpp
diff --git
a/src/smpi/mpi/smpi_win.cpp
b/src/smpi/mpi/smpi_win.cpp
index
7b33c80
..
b6d1f34
100644
(file)
--- a/
src/smpi/mpi/smpi_win.cpp
+++ b/
src/smpi/mpi/smpi_win.cpp
@@
-97,6
+97,8
@@
int Win::del(Win* win){
}
if (win->allocated_)
xbt_free(win->base_);
+ if (win->mut_->get_owner() != nullptr)
+ win->mut_->unlock();
F2C::free_f(win->f2c_id());
win->cleanup_attr<Win>();