9 #include <ucp/api/ucp.h>
11 #include <ucxx/notifier.h>
21 class Future :
public std::enable_shared_from_this<Future> {
61 virtual void notify(ucs_status_t status) = 0;
72 virtual void set(ucs_status_t status) = 0;
Represent a future that may be notified by a specialized notifier.
Definition: future.h:21
virtual void * release()=0
Get the underlying handle and release ownership.
virtual void * getHandle()=0
Get the underlying handle but does not release ownership.
virtual void notify(ucs_status_t status)=0
Inform the notifier that the future has completed.
Future(std::shared_ptr< Notifier > notifier)
Construct a future that may be notified from a notifier object.
Definition: future.h:35
virtual ~Future()
Virtual destructor.
Definition: future.h:49
virtual void set(ucs_status_t status)=0
Set the future completion status.
std::shared_ptr< Notifier > _notifier
The notifier object.
Definition: future.h:23