ucs_status_t ucp_tag_recv_request_test(void *request, ucp_tag_recv_info_t *info) { ucp_request_t *req = (ucp_request_t*)request - 1; ucs_status_t status = ucp_request_check_status(request); if (status != UCS_INPROGRESS) { ucs_assert(req->flags & UCP_REQUEST_FLAG_RECV); *info = req->recv.tag.info; } return status; }
ucs_status_t ucp_stream_recv_request_test(void *request, size_t *length_p) { ucp_request_t *req = (ucp_request_t*)request - 1; ucs_status_t status = ucp_request_check_status(request); if (status != UCS_INPROGRESS) { ucs_assert(req->flags & UCP_REQUEST_FLAG_STREAM_RECV); *length_p = req->recv.stream.length; } return status; }