Skip to content

Commit e93727f

Browse files
committed
UCP/API: Deprecate ucp_request_alloc
1 parent 1f56a85 commit e93727f

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

src/ucp/api/ucp.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3931,22 +3931,6 @@ void ucp_stream_data_release(ucp_ep_h ep, void *data);
39313931
void ucp_request_free(void *request);
39323932

39333933

3934-
/**
3935-
* @ingroup UCP_COMM
3936-
* @brief Create an empty communications request.
3937-
*
3938-
* @param [in] worker UCP worker.
3939-
*
3940-
* @return Error code as defined by @ref ucs_status_t
3941-
*
3942-
* This routine creates request which may be used in functions
3943-
* @ref ucp_tag_send_nbx, @ref ucp_tag_recv_nbx, etc. The application
3944-
* is responsible for releasing the handle using the @ref ucp_request_free
3945-
* routine
3946-
*/
3947-
void *ucp_request_alloc(ucp_worker_h worker);
3948-
3949-
39503934
/**
39513935
* @ingroup UCP_DATATYPE
39523936
* @brief Create a generic datatype.

src/ucp/api/ucp_compat.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ void ucp_ep_destroy(ucp_ep_h ep);
5555
ucs_status_ptr_t ucp_disconnect_nb(ucp_ep_h ep);
5656

5757

58+
/**
59+
* @ingroup UCP_COMM
60+
* @deprecated User should allocate requests using standard methods such as
61+
* malloc() or alloca().
62+
*
63+
* @param [in] worker UCP worker.
64+
*
65+
* @return This function is not implemented and always returns NULL.
66+
*/
67+
void *ucp_request_alloc(ucp_worker_h worker);
68+
69+
5870
/**
5971
* @ingroup UCP_ENDPOINT
6072
* @deprecated Replaced by @ref ucp_tag_recv_request_test and

0 commit comments

Comments
 (0)