Return the tag of the received message or APM_NONE if no message * has been received. If a message has been received, this call should * be followed by a call to either ReceiveControlMessage or * ReceiveBufferedMessage. */
| 59 | * ReceiveBufferedMessage. |
| 60 | */ |
| 61 | APMessage CommLayer::checkMessage(int& sendID) |
| 62 | { |
| 63 | MPI_Status status; |
| 64 | bool flag = request_get_status(m_request, status); |
| 65 | if (flag) |
| 66 | sendID = status.MPI_SOURCE; |
| 67 | return flag ? (APMessage)status.MPI_TAG : APM_NONE; |
| 68 | } |
| 69 | |
| 70 | /** Return true if no message has been received. */ |
| 71 | bool CommLayer::receiveEmpty() |
no test coverage detected