vt::messaging::AsyncOpWrapper struct

Wrapper for a general asynchronous operation that holds a pointer to base class.

Constructors, destructors, conversion operators

AsyncOpWrapper(std::unique_ptr<AsyncOp> ptr) explicit
Construct with unique pointer to operation.
AsyncOpWrapper(std::unique_ptr<AsyncOp> ptr, ThreadIDType in_tid)
Construct with unique pointer to operation and a thread ID to resume when it completes.

Public functions

auto test(int& num_tests) -> bool
Test completion of the operation.
void done()
Trigger continuation after operation completes.
template<typename SerializerT>
void serialize(SerializerT& s)
Serializer for footprinting.

Public variables

bool valid

Function documentation

vt::messaging::AsyncOpWrapper::AsyncOpWrapper(std::unique_ptr<AsyncOp> ptr) explicit

Construct with unique pointer to operation.

Parameters
ptr in the operation

vt::messaging::AsyncOpWrapper::AsyncOpWrapper(std::unique_ptr<AsyncOp> ptr, ThreadIDType in_tid)

Construct with unique pointer to operation and a thread ID to resume when it completes.

Parameters
ptr in the operation
in_tid

bool vt::messaging::AsyncOpWrapper::test(int& num_tests)

Test completion of the operation.

Parameters
num_tests in how many tests were executed (diagnostics)
Returns whether the operation is complete

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

Serializer for footprinting.

Parameters
in the serializer

Variable documentation

bool vt::messaging::AsyncOpWrapper::valid

Whether op is valid