xbmc
Classes | Public Member Functions | List of all members
KODI::CSignalHandlerList< ManagedT > Class Template Reference

Public Member Functions

CSignalRegistration Register (ManagedT const &handler)
 
template<typename... ArgsT>
void Invoke (ArgsT &&... args)
 Invoke all registered signal handlers with the provided arguments when the signal type is a std::function or otherwise implements operator()
 
auto begin () const
 
auto end () const
 
CCriticalSection const & CriticalSection () const
 Get critical section for accessing the handler list. More...
 

Member Function Documentation

◆ CriticalSection()

template<typename ManagedT>
CCriticalSection const& KODI::CSignalHandlerList< ManagedT >::CriticalSection ( ) const
inline

Get critical section for accessing the handler list.

Note
You must lock this yourself if you iterate through the handler list manually without using Invoke or similar.

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