vt::messaging::AsyncOp struct

A general asynchronous operation with a pure virtual polling function and an associated trigger to execute when it completes.

Derived classes

struct AsyncOpMPI
An asynchronous MPI request that VT can poll on until completion.

Constructors, destructors, conversion operators

AsyncOp()
Construct an AsyncOp tracking the current epoch.
AsyncOp(AsyncOp&&)
AsyncOp(AsyncOp const&) deleted
~AsyncOp() virtual

Public functions

auto operator=(AsyncOp&&) -> AsyncOp& deleted
auto operator=(AsyncOp const&) -> AsyncOp& deleted
auto poll() -> bool pure virtual
Function to override for polling completion of this asynchronous operation.
void done() pure virtual
Function to override that is triggered when the operation completes.
template<typename SerializerT>
void serialize(SerializerT& s)
Serialize for footprinting.

Protected variables

EpochType cur_epoch_

Function documentation

bool vt::messaging::AsyncOp::poll() pure virtual

Function to override for polling completion of this asynchronous operation.

Returns whether the operation is completed

template<typename SerializerT>
void vt::messaging::AsyncOp::serialize(SerializerT& s)

Serialize for footprinting.

Parameters
in the serializer

Variable documentation

EpochType vt::messaging::AsyncOp::cur_epoch_ protected

Enclosing epoch for the operation