Browse Source

Add sanity checks

Cédric Augonnet 14 years ago
parent
commit
2f245fe25b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      mpi/starpu_mpi.c

+ 3 - 0
mpi/starpu_mpi.c

@@ -593,6 +593,9 @@ static void *progress_thread_func(void *arg __attribute__((unused)))
 		}
 	}
 
+	STARPU_ASSERT(starpu_mpi_req_list_empty(detached_requests));
+	STARPU_ASSERT(starpu_mpi_req_list_empty(new_requests));
+
 	PTHREAD_MUTEX_UNLOCK(&mutex);
 
 	return NULL;