From: degomme Date: Mon, 3 Apr 2017 12:35:19 +0000 (+0200) Subject: close the window if we explicitely tell it's closed X-Git-Tag: v3.16~397 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8f9cfe192c534db5cd9c4066ada3c896445009fa close the window if we explicitely tell it's closed --- diff --git a/src/smpi/smpi_win.cpp b/src/smpi/smpi_win.cpp index 59ce7600c1..ce5db55b1a 100644 --- 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_); } + + 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_);