thread_job

namespace opentl::thdpl {
    template <typename T>
    class thread_job;

    template <typename R, typename... Args>
    class thread_job<R(Args...)>;
}

An asynchronous job for the thread pool.

Template Parameters

Name Description
R The return type.
Args The argument types.

Member Objects

Name Type Description
task std::packaged_task<R(Args...)> The task to execute.
args std::tuple<Args...> The task arguments.