comparison 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
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
57 bool all_trivial_requests = true; 57 bool all_trivial_requests = true;
58 difference_type n = 0; 58 difference_type n = 0;
59 ForwardIterator current = first; 59 ForwardIterator current = first;
60 while (true) { 60 while (true) {
61 // Check if we have found a completed request. If so, return it. 61 // Check if we have found a completed request. If so, return it.
62 if (optional<status> result = current->test()) 62 if (current->m_requests[0] != MPI_REQUEST_NULL &&
63 return std::make_pair(*result, current); 63 current->m_requests[1] != MPI_REQUEST_NULL)
64 if (optional<status> result = current->test())
65 return std::make_pair(*result, current);
64 66
65 // Check if this request (and all others before it) are "trivial" 67 // Check if this request (and all others before it) are "trivial"
66 // requests, e.g., they can be represented with a single 68 // requests, e.g., they can be represented with a single
67 // MPI_Request. 69 // MPI_Request.
68 all_trivial_requests = 70 all_trivial_requests =