WPILibC++ 2024.3.2
wpi::detail::WorkerThreadRequest< R, T > Struct Template Reference

#include <wpinet/WorkerThread.h>

Public Types

using WorkFunction = std::function< R(T...)>
 
using AfterWorkFunction = typename WorkerThreadAsync< R >::AfterWorkFunction
 

Public Member Functions

 WorkerThreadRequest ()=default
 
 WorkerThreadRequest (uint64_t promiseId_, WorkFunction work_, std::tuple< T... > params_)
 
 WorkerThreadRequest (WorkFunction work_, AfterWorkFunction afterWork_, std::tuple< T... > params_)
 

Public Attributes

uint64_t promiseId
 
WorkFunction work
 
AfterWorkFunction afterWork
 
std::tuple< T... > params
 

Member Typedef Documentation

◆ AfterWorkFunction

template<typename R , typename... T>
using wpi::detail::WorkerThreadRequest< R, T >::AfterWorkFunction = typename WorkerThreadAsync<R>::AfterWorkFunction

◆ WorkFunction

template<typename R , typename... T>
using wpi::detail::WorkerThreadRequest< R, T >::WorkFunction = std::function<R(T...)>

Constructor & Destructor Documentation

◆ WorkerThreadRequest() [1/3]

template<typename R , typename... T>
wpi::detail::WorkerThreadRequest< R, T >::WorkerThreadRequest ( )
default

◆ WorkerThreadRequest() [2/3]

template<typename R , typename... T>
wpi::detail::WorkerThreadRequest< R, T >::WorkerThreadRequest ( uint64_t  promiseId_,
WorkFunction  work_,
std::tuple< T... >  params_ 
)
inline

◆ WorkerThreadRequest() [3/3]

template<typename R , typename... T>
wpi::detail::WorkerThreadRequest< R, T >::WorkerThreadRequest ( WorkFunction  work_,
AfterWorkFunction  afterWork_,
std::tuple< T... >  params_ 
)
inline

Member Data Documentation

◆ afterWork

template<typename R , typename... T>
AfterWorkFunction wpi::detail::WorkerThreadRequest< R, T >::afterWork

◆ params

template<typename R , typename... T>
std::tuple<T...> wpi::detail::WorkerThreadRequest< R, T >::params

◆ promiseId

template<typename R , typename... T>
uint64_t wpi::detail::WorkerThreadRequest< R, T >::promiseId

◆ work

template<typename R , typename... T>
WorkFunction wpi::detail::WorkerThreadRequest< R, T >::work

The documentation for this struct was generated from the following file: