Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
close the window if we explicitely tell it's closed
authordegomme <augustin.degomme@unibas.ch>
Mon, 3 Apr 2017 12:35:19 +0000 (14:35 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Tue, 4 Apr 2017 08:27:12 +0000 (10:27 +0200)
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_);