Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
updated to use branching-tree broadcast instead of for-loop.
[simgrid.git] / src / smpi / smpi_base.c
index 10f8303..62834b6 100644 (file)
@@ -227,7 +227,7 @@ int smpi_mpi_wait(smpi_mpi_request_t request, smpi_mpi_status_t *status)
                retval = MPI_ERR_INTERN;
        } else {
                SIMIX_mutex_lock(request->mutex);
-               if (!request->completed) {
+               while (!request->completed) {
                        SIMIX_cond_wait(request->cond, request->mutex);
                }
                if (NULL != status) {