10 #include <ucp/api/ucp.h>
12 #include <ucxx/delayed_submission.h>
13 #include <ucxx/request.h>
14 #include <ucxx/request_tag_builder.h>
15 #include <ucxx/typedefs.h>
27 bool _cancelRequested{
false};
59 std::shared_ptr<Component> endpointOrWorker,
60 const std::variant<data::TagSend, data::TagReceive, data::TagReceiveWithHandle> requestData,
61 std::string operationName,
62 const bool enablePythonFuture =
false,
66 void populateDelayedSubmissionImpl()
override;
70 friend class detail::ConstructorFactory;
126 const ucp_tag_recv_info_t* info,
Send or receive a message with the UCX Tag API.
Definition: request_tag.h:25
void request()
Create and submit a tag request.
void callback(void *request, ucs_status_t status, const ucp_tag_recv_info_t *info)
Implementation of the tag receive request callback.
static void tagSendCallback(void *request, ucs_status_t status, void *arg)
Callback executed by UCX when a tag send request is completed.
void cancel() override
Cancel the tag request.
static void tagRecvCallback(void *request, ucs_status_t status, const ucp_tag_recv_info_t *info, void *arg)
Callback executed by UCX when a tag receive request is completed.
Base type for a UCXX transfer request.
Definition: request.h:39
std::function< void(ucs_status_t, std::shared_ptr< void >)> RequestCallbackUserFunction
A user-defined function to execute as part of a ucxx::Request callback.
Definition: typedefs.h:97
std::shared_ptr< void > RequestCallbackUserData
Data for the user-defined function provided to the ucxx::Request callback.
Definition: typedefs.h:105