foobar2000 SDK  2015-01-14
Data Structures | Functions
main_thread_callback.h File Reference

Go to the source code of this file.

Data Structures

class  _callInMainThreadSvc_t< service_t, param_t >
 
class  callInMainThread
 
class  callInMainThreadHelper
 
class  callInMainThreadHelper::entry< host_t, arg_t >
 
class  callInMainThreadHelper::entryVoid< host_t >
 
class  main_thread_callback
 
class  main_thread_callback_manager
 

Functions

template<typename myservice_t , typename param_t >
static void callInMainThreadSvc (myservice_t *host, param_t const &param)
 
void main_thread_callback_add (main_thread_callback::ptr ptr)
 
template<typename t_class >
static void main_thread_callback_spawn ()
 
template<typename t_class , typename t_param1 >
static void main_thread_callback_spawn (const t_param1 &p1)
 
template<typename t_class , typename t_param1 , typename t_param2 >
static void main_thread_callback_spawn (const t_param1 &p1, const t_param2 &p2)
 

Function Documentation

template<typename myservice_t , typename param_t >
static void callInMainThreadSvc ( myservice_t *  host,
param_t const &  param 
)
static

Definition at line 67 of file main_thread_callback.h.

67  {
69  service_ptr_t<impl_t> obj = new service_impl_t<impl_t>(host, param);
71 }
Template implementing reference-counting features of service_base. Intended for dynamic instantiation...
Definition: service_impl.h:4
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
Helper template used to easily access core services. Usage: static_api_ptr_t api; api->doso...
Definition: service.h:533
void main_thread_callback_add ( main_thread_callback::ptr  ptr)

Definition at line 8 of file main_thread_callback.cpp.

8  {
10 }
Helper template used to easily access core services. Usage: static_api_ptr_t api; api->doso...
Definition: service.h:533
template<typename t_class >
static void main_thread_callback_spawn ( )
static

Definition at line 27 of file main_thread_callback.h.

27  {
29 }
Template implementing reference-counting features of service_base. Intended for dynamic instantiation...
Definition: service_impl.h:4
void main_thread_callback_add(main_thread_callback::ptr ptr)
template<typename t_class , typename t_param1 >
static void main_thread_callback_spawn ( const t_param1 &  p1)
static

Definition at line 30 of file main_thread_callback.h.

30  {
32 }
Template implementing reference-counting features of service_base. Intended for dynamic instantiation...
Definition: service_impl.h:4
void main_thread_callback_add(main_thread_callback::ptr ptr)
template<typename t_class , typename t_param1 , typename t_param2 >
static void main_thread_callback_spawn ( const t_param1 &  p1,
const t_param2 &  p2 
)
static

Definition at line 33 of file main_thread_callback.h.

33  {
35 }
Template implementing reference-counting features of service_base. Intended for dynamic instantiation...
Definition: service_impl.h:4
void main_thread_callback_add(main_thread_callback::ptr ptr)