Template Class runnable

Inheritance Relationships

Base Type

Derived Type

Class Documentation

template<typename Func>
class legion::core::runnable : public legion::core::runnable_base

A data structure encapsulating commands and jobs sent to any thread and it’s parameters.

Subclassed by legion::core::async::async_runnable< Func >

Public Functions

runnable() = default
inline runnable(const Func &func)
inline virtual void execute() override

Protected Attributes

std::shared_ptr<std::remove_reference_t<Func>> m_func