foobar2000 SDK
2015-01-14
|
#include <threads.h>
Public Member Functions | |
thread () | |
~thread () | |
int | getPriority () |
bool | isActive () const |
PFC_DECLARE_EXCEPTION (exception_creation, exception,"Could not create thread") | |
void | setPriority (int priority) |
void | start () |
void | startWithPriority (int priority) |
void | waitTillDone () |
void | winStart (int priority, DWORD *outThreadID) |
HANDLE | winThreadHandle () |
Static Public Member Functions | |
static int | currentPriority () |
Protected Member Functions | |
virtual void | threadProc () |
Private Member Functions | |
void | close () |
void | entry () |
Static Private Member Functions | |
static void | appleStartThreadPrologue () |
static unsigned CALLBACK | g_entry (void *p_instance) |
static void * | g_entry (void *arg) |
Private Attributes | |
HANDLE | m_thread |
pthread_t | m_thread |
bool | m_threadValid |
IMPORTANT: all classes derived from thread must call waitTillDone() in their destructor, to avoid object destruction during a virtual function call!
pfc::thread::thread | ( | ) |
Definition at line 58 of file threads.cpp.
|
staticprivate |
|
private |
Definition at line 62 of file threads.cpp.
|
static |
Definition at line 104 of file threads.cpp.
|
private |
Definition at line 51 of file threads.cpp.
|
staticprivate |
|
staticprivate |
int pfc::thread::getPriority | ( | ) |
Definition at line 99 of file threads.cpp.
bool pfc::thread::isActive | ( | ) | const |
Definition at line 72 of file threads.cpp.
void pfc::thread::setPriority | ( | int | priority | ) |
Definition at line 87 of file threads.cpp.
void pfc::thread::start | ( | ) |
Definition at line 91 of file threads.cpp.
void pfc::thread::startWithPriority | ( | int | priority | ) |
Definition at line 84 of file threads.cpp.
|
inlineprotectedvirtual |
Reimplemented in CSimpleThread, and CVerySimpleThread.
void pfc::thread::winStart | ( | int | priority, |
DWORD * | outThreadID | ||
) |
Definition at line 75 of file threads.cpp.