Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
close the window if we explicitely tell it's closed
[simgrid.git] / src / smpi / smpi_win.cpp
index 59ce760..ce5db55 100644 (file)
@@ -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_);