Mercurial > hg > vamp-build-and-test
diff DEPENDENCIES/generic/include/boost/mpi/nonblocking.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
line wrap: on
line diff
--- a/DEPENDENCIES/generic/include/boost/mpi/nonblocking.hpp Fri Sep 04 12:01:02 2015 +0100 +++ b/DEPENDENCIES/generic/include/boost/mpi/nonblocking.hpp Mon Sep 07 11:12:49 2015 +0100 @@ -59,8 +59,10 @@ ForwardIterator current = first; while (true) { // Check if we have found a completed request. If so, return it. - if (optional<status> result = current->test()) - return std::make_pair(*result, current); + if (current->m_requests[0] != MPI_REQUEST_NULL && + current->m_requests[1] != MPI_REQUEST_NULL) + if (optional<status> result = current->test()) + return std::make_pair(*result, current); // Check if this request (and all others before it) are "trivial" // requests, e.g., they can be represented with a single