WPILibC++
unspecified
|
Public Member Functions | |
ConnectionNotifierThread (int inst) | |
bool | Matches (const ListenerData &listener, const ConnectionNotification &data) |
void | SetListener (ConnectionNotification *data, unsigned int listener_uid) |
void | DoCallback (std::function< void(const ConnectionNotification &event)> callback, const ConnectionNotification &data) |
![]() | |
void | Main () override |
void | SendPoller (unsigned int poller_uid, Args &&...args) |
Public Attributes | |
int | m_inst |
![]() | |
wpi::UidVector< ListenerData, 64 > | m_listeners |
std::queue< std::pair< unsigned int, NotifierData > > | m_queue |
std::condition_variable | m_queue_empty |
wpi::UidVector< std::shared_ptr< Poller >, 64 > | m_pollers |
![]() | |
std::mutex | m_mutex |
std::atomic_bool | m_active |
std::condition_variable | m_cond |
Additional Inherited Members | |
![]() | |
typedef ConnectionNotification | UserInfo |
typedef ConnectionNotification | NotifierData |
typedef ListenerData< std::function< void(const ConnectionNotification &info)>> | ListenerData |