mirror of
https://github.com/boostorg/mpi.git
synced 2026-02-25 04:22:17 +00:00
accbafc66f767e7e81d9103b39ecbc911290cdf1
In wait_any, we need to test for compound recv of serialized object that just got the size but not the body (that is, request[1] == null & handler != null).
Note that in:
if (current->m_requests[0] != MPI_REQUEST_NULL &&
(current->m_requests[1] != MPI_REQUEST_NULL ||
current->m_handler)) {
if (optional<status> result = current->test())
return std::make_pair(*result, current);
}
I suspect the 3 line test should be removed and every thng handled in request::test (which is supposed to tell wheter we have a complete request).
But I have no idea why it was done like that in the first place.
(cherry picked from commit ed4852863a)
Description
Mirrored via gitea-mirror
Languages
C++
97.2%
Python
2.3%
CMake
0.5%