foobar2000 SDK
2015-08-03
|
#include <threaded_process.h>
Public Member Functions | |
FB2K_MAKE_SERVICE_INTERFACE (threaded_process_callback, service_base) | |
virtual void | on_done (HWND p_wnd, bool p_was_aborted) |
virtual void | on_init (HWND p_wnd) |
virtual void | run (threaded_process_status &p_status, abort_callback &p_abort)=0 |
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 () |
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 () | |
Callback class for the threaded_process API. You must implement this to create your own threaded_process client.
Definition at line 42 of file threaded_process.h.
threaded_process_callback::FB2K_MAKE_SERVICE_INTERFACE | ( | threaded_process_callback | , |
service_base | |||
) |
|
inlinevirtual |
Called after the worker thread has finished executing.
Reimplemented in threaded_process_callback_redir< TTarget >, and calculate_peak_process.
Definition at line 50 of file threaded_process.h.
|
inlinevirtual |
Called from the main thread before spawning the worker thread.
Note that you should not access the window handle passed to on_init() in the worker thread later on.
Reimplemented in threaded_process_callback_redir< TTarget >, and calculate_peak_process.
Definition at line 46 of file threaded_process.h.
|
pure virtual |
Called from the worker thread. Do all the hard work here.
Implemented in threaded_process_callback_redir< TTarget >, and calculate_peak_process.