foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
_callInMainThreadSvc_t< service_t, param_t >

#include <main_thread_callback.h>

+ Inheritance diagram for _callInMainThreadSvc_t< service_t, param_t >:

Public Member Functions

 _callInMainThreadSvc_t (service_t *host, param_t const &param)
 
void callback_run ()
 
- Public Member Functions inherited from main_thread_callback
void callback_enqueue ()
 
 FB2K_MAKE_SERVICE_INTERFACE (main_thread_callback, service_base)
 
- Public Member Functions inherited from service_base
template<typename outPtr_t >
bool cast (outPtr_t &outPtr)
 
virtual int service_add_ref ()=0 throw ()
 
virtual bool service_query (service_ptr_t< service_base > &p_out, const GUID &p_guid)
 
template<class T >
bool service_query_t (service_ptr_t< T > &p_out)
 
virtual int service_release ()=0 throw ()
 

Private Attributes

service_ptr_t< service_t > m_host
 
param_t m_param
 

Additional Inherited Members

- Public Types inherited from service_base
typedef service_base t_interface
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

template<typename service_t, typename param_t>
class _callInMainThreadSvc_t< service_t, param_t >

Definition at line 54 of file main_thread_callback.h.

Constructor & Destructor Documentation

template<typename service_t , typename param_t >
_callInMainThreadSvc_t< service_t, param_t >::_callInMainThreadSvc_t ( service_t *  host,
param_t const &  param 
)
inline

Definition at line 56 of file main_thread_callback.h.

56 : m_host(host), m_param(param) {}
service_ptr_t< service_t > m_host

Member Function Documentation

template<typename service_t , typename param_t >
void _callInMainThreadSvc_t< service_t, param_t >::callback_run ( )
inlinevirtual

Gets called from main app thread. See main_thread_callback_manager description for more info.

Implements main_thread_callback.

Definition at line 57 of file main_thread_callback.h.

57  {
59  }
static void callThis(host_t *host, param_t &param)
T * get_ptr() const
Definition: service.h:117
service_ptr_t< service_t > m_host

Field Documentation

template<typename service_t , typename param_t >
service_ptr_t<service_t> _callInMainThreadSvc_t< service_t, param_t >::m_host
private

Definition at line 61 of file main_thread_callback.h.

template<typename service_t , typename param_t >
param_t _callInMainThreadSvc_t< service_t, param_t >::m_param
private

Definition at line 62 of file main_thread_callback.h.


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