Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CEventStream< Event > Class Template Reference

#include <EventStream.h>

Inheritance diagram for CEventStream< Event >:
CBlockingEventSource< Event > CEventSource< Event >

Public Member Functions

template<typename A >
void Subscribe (A *owner, void(A::*fn)(const Event &))
 
template<typename A >
void Unsubscribe (A *obj)
 

Protected Attributes

std::vector< std::shared_ptr< detail::ISubscription< Event > > > m_subscriptions
 
CCriticalSection m_criticalSection
 

Member Function Documentation

◆ Subscribe()

template<typename Event >
template<typename A >
void CEventStream< Event >::Subscribe ( A * owner,
void(A::* fn )(const Event &) )
inline

◆ Unsubscribe()

template<typename Event >
template<typename A >
void CEventStream< Event >::Unsubscribe ( A * obj)
inline

Member Data Documentation

◆ m_criticalSection

template<typename Event >
CCriticalSection CEventStream< Event >::m_criticalSection
protected

◆ m_subscriptions

template<typename Event >
std::vector<std::shared_ptr<detail::ISubscription<Event> > > CEventStream< Event >::m_subscriptions
protected

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