WPILibC++ 2023.4.3-108-ge5452e3
wpi::CallbackManager< Derived, Thread > Class Template Reference

#include <wpi/CallbackManager.h>

Public Member Functions

void SetOnStart (std::function< void()> on_start)
 
void SetOnExit (std::function< void()> on_exit)
 
void Stop ()
 
void Remove (unsigned int listener_uid)
 
unsigned int CreatePoller ()
 
void RemovePoller (unsigned int poller_uid)
 
bool WaitForQueue (double timeout)
 
std::vector< typename Thread::UserInfo > Poll (unsigned int poller_uid)
 
std::vector< typename Thread::UserInfo > Poll (unsigned int poller_uid, double timeout, bool *timed_out)
 
void CancelPoll (unsigned int poller_uid)
 

Protected Member Functions

template<typename... Args>
void DoStart (Args &&... args)
 
template<typename... Args>
unsigned int DoAdd (Args &&... args)
 
template<typename... Args>
void Send (unsigned int only_listener, Args &&... args)
 
wpi::SafeThreadOwner< Thread >::Proxy GetThread () const
 

Friends

class RpcServerTest
 

Member Function Documentation

◆ CancelPoll()

template<typename Derived , typename Thread >
void wpi::CallbackManager< Derived, Thread >::CancelPoll ( unsigned int  poller_uid)
inline

◆ CreatePoller()

template<typename Derived , typename Thread >
unsigned int wpi::CallbackManager< Derived, Thread >::CreatePoller ( )
inline

◆ DoAdd()

template<typename Derived , typename Thread >
template<typename... Args>
unsigned int wpi::CallbackManager< Derived, Thread >::DoAdd ( Args &&...  args)
inlineprotected

◆ DoStart()

template<typename Derived , typename Thread >
template<typename... Args>
void wpi::CallbackManager< Derived, Thread >::DoStart ( Args &&...  args)
inlineprotected

◆ GetThread()

template<typename Derived , typename Thread >
wpi::SafeThreadOwner< Thread >::Proxy wpi::CallbackManager< Derived, Thread >::GetThread ( ) const
inlineprotected

◆ Poll() [1/2]

template<typename Derived , typename Thread >
std::vector< typename Thread::UserInfo > wpi::CallbackManager< Derived, Thread >::Poll ( unsigned int  poller_uid)
inline

◆ Poll() [2/2]

template<typename Derived , typename Thread >
std::vector< typename Thread::UserInfo > wpi::CallbackManager< Derived, Thread >::Poll ( unsigned int  poller_uid,
double  timeout,
bool *  timed_out 
)
inline

◆ Remove()

template<typename Derived , typename Thread >
void wpi::CallbackManager< Derived, Thread >::Remove ( unsigned int  listener_uid)
inline

◆ RemovePoller()

template<typename Derived , typename Thread >
void wpi::CallbackManager< Derived, Thread >::RemovePoller ( unsigned int  poller_uid)
inline

◆ Send()

template<typename Derived , typename Thread >
template<typename... Args>
void wpi::CallbackManager< Derived, Thread >::Send ( unsigned int  only_listener,
Args &&...  args 
)
inlineprotected

◆ SetOnExit()

template<typename Derived , typename Thread >
void wpi::CallbackManager< Derived, Thread >::SetOnExit ( std::function< void()>  on_exit)
inline

◆ SetOnStart()

template<typename Derived , typename Thread >
void wpi::CallbackManager< Derived, Thread >::SetOnStart ( std::function< void()>  on_start)
inline

◆ Stop()

template<typename Derived , typename Thread >
void wpi::CallbackManager< Derived, Thread >::Stop ( )
inline

◆ WaitForQueue()

template<typename Derived , typename Thread >
bool wpi::CallbackManager< Derived, Thread >::WaitForQueue ( double  timeout)
inline

Friends And Related Function Documentation

◆ RpcServerTest

template<typename Derived , typename Thread >
friend class RpcServerTest
friend

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