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
close the window if we explicitely tell it's closed
[simgrid.git]
/
src
/
smpi
/
smpi_win.cpp
diff --git
a/src/smpi/smpi_win.cpp
b/src/smpi/smpi_win.cpp
index
59ce760
..
ce5db55
100644
(file)
--- a/
src/smpi/smpi_win.cpp
+++ b/
src/smpi/smpi_win.cpp
@@
-173,6
+173,9
@@
int Win::fence(int assert)
count_=0;
xbt_mutex_release(mut_);
}
count_=0;
xbt_mutex_release(mut_);
}
+
+ if(assert==MPI_MODE_NOSUCCEED)//there should be no ops after this one, tell we are closed.
+ opened_=0;
assert_ = assert;
MSG_barrier_wait(bar_);
assert_ = assert;
MSG_barrier_wait(bar_);