MCPcopy Create free account
hub / github.com/BirolLab/abyss / checkMessage

Method checkMessage

Parallel/CommLayer.cpp:61–68  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

59 * ReceiveBufferedMessage.
60 */
61APMessage 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. */
71bool CommLayer::receiveEmpty()

Callers 1

pumpNetworkMethod · 0.80

Calls 1

request_get_statusFunction · 0.85

Tested by

no test coverage detected