template<typename T>
vt::runtime::component::PollableComponent struct

Component class for a generic, pollable VT runtime module, CRTP'ed over the component's actual type. A pollable component will be registered with the VT scheduler to ensure it makes progress.

Base classes

template<typename T>
struct Component<T>
Component class for a generic VT runtime module, CRTP'ed over the component's actual type

Public functions

auto pollable() -> bool override
Whether the component requires the scheduler to poll.
auto progress(] TimeType current_time) -> int override
Override progress function to force user to supply a real function. Abort if the user does not.

Function documentation

template<typename T>
bool vt::runtime::component::PollableComponent<T>::pollable() override

Whether the component requires the scheduler to poll.

Returns pollable component returns true to indicate progress function to be invoked

template<typename T>
int vt::runtime::component::PollableComponent<T>::progress(] TimeType current_time) override

Override progress function to force user to supply a real function. Abort if the user does not.

Returns number of units processed—zero