foobar2000 SDK  2015-08-03
Data Structures | Namespaces | 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::entryFunc
 
class  callInMainThreadHelper::entryVoid< host_t >
 
class  main_thread_callback
 
class  main_thread_callback_manager
 

Namespaces

 fb2k
 

Functions

template<typename myservice_t , typename param_t >
static void callInMainThreadSvc (myservice_t *host, param_t const &param)
 
void fb2k::inMainThread (std::function< void() > f)
 
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 69 of file main_thread_callback.h.

69  {
71  service_ptr_t<impl_t> obj = new service_impl_t<impl_t>(host, param);
73 }
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<myclass> 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<myclass> api; api->doso...
Definition: service.h:533
template<typename t_class >
static void main_thread_callback_spawn ( )
static

Definition at line 29 of file main_thread_callback.h.

29  {
31 }
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 32 of file main_thread_callback.h.

32  {
34 }
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 35 of file main_thread_callback.h.

35  {
37 }
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)