foobar2000 SDK
2015-08-03
|
#include <fb2k_threads.h>
Public Member Functions | |
void | AbortThread () |
bool | IsThreadActive () const |
void | StartThread (int priority) |
void | StartThread () |
void | WaitTillThreadDone () |
Protected Member Functions | |
CSimpleThread () | |
~CSimpleThread () | |
virtual void | ThreadDone (unsigned p_code) |
virtual unsigned | ThreadProc (abort_callback &p_abort)=0 |
Private Member Functions | |
void | CloseThread () |
void | on_task_completion (unsigned p_id, unsigned p_status) |
PFC_CLASS_NOT_COPYABLE_EX (CSimpleThread) | |
void | threadProc () |
Private Member Functions inherited from completion_notify_receiver | |
~completion_notify_receiver () | |
completion_notify::ptr | create_or_get_task (unsigned p_id) |
completion_notify_ptr | create_task (unsigned p_id) |
bool | have_task (unsigned p_id) const |
void | orphan_all_tasks () |
void | orphan_task (unsigned p_id) |
Private Member Functions inherited from pfc::thread | |
thread () | |
~thread () | |
int | getPriority () |
bool | isActive () const |
PFC_DECLARE_EXCEPTION (exception_creation, exception,"Could not create thread") | |
pthread_t | posixThreadHandle () |
void | setPriority (int priority) |
void | start () |
void | startWithPriority (int priority) |
void | waitTillDone () |
void | winStart (int priority, DWORD *outThreadID) |
HANDLE | winThreadHandle () |
Private Attributes | |
abort_callback_impl | m_abort |
completion_notify_ptr | m_ownNotify |
Additional Inherited Members | |
Static Private Member Functions inherited from pfc::thread | |
static int | currentPriority () |
IMPORTANT: all classes derived from CSimpleThread must call AbortThread()/WaitTillThreadDone() in their destructors, to avoid object destruction during a virtual function call!
Definition at line 34 of file fb2k_threads.h.
|
inlineprotected |
Definition at line 56 of file fb2k_threads.h.
|
inlineprotected |
Definition at line 57 of file fb2k_threads.h.
|
inline |
Definition at line 45 of file fb2k_threads.h.
|
inlineprivate |
Definition at line 63 of file fb2k_threads.h.
|
inline |
Definition at line 49 of file fb2k_threads.h.
|
inlineprivatevirtual |
Reimplemented from completion_notify_receiver.
Definition at line 68 of file fb2k_threads.h.
|
private |
|
inline |
Definition at line 36 of file fb2k_threads.h.
|
inline |
Definition at line 42 of file fb2k_threads.h.
|
inlineprotectedvirtual |
Called when the thread has completed normally, with p_code equal to ThreadProc retval. Not called when AbortThread() or WaitTillThreadDone() was used to abort the thread / wait for the thread to finish.
Definition at line 61 of file fb2k_threads.h.
|
protectedpure virtual |
|
inlineprivatevirtual |
Reimplemented from pfc::thread.
Definition at line 74 of file fb2k_threads.h.
|
inline |
Definition at line 52 of file fb2k_threads.h.
|
private |
Definition at line 81 of file fb2k_threads.h.
|
private |
Definition at line 82 of file fb2k_threads.h.