|
foobar2000 SDK
2015-08-03
|
#include <threads.h>
Inheritance diagram for pfc::thread:Public Member Functions | |
| 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 () |
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 56 of file threads.cpp.
|
staticprivate |
|
private |
Definition at line 60 of file threads.cpp.
|
static |
Definition at line 106 of file threads.cpp.
|
private |
Definition at line 49 of file threads.cpp.
|
staticprivate |
|
staticprivate |
| int pfc::thread::getPriority | ( | ) |
Definition at line 101 of file threads.cpp.
| bool pfc::thread::isActive | ( | ) | const |
Definition at line 70 of file threads.cpp.
| void pfc::thread::setPriority | ( | int | priority | ) |
Definition at line 89 of file threads.cpp.
| void pfc::thread::start | ( | ) |
Definition at line 93 of file threads.cpp.
| void pfc::thread::startWithPriority | ( | int | priority | ) |
Definition at line 86 of file threads.cpp.
|
inlineprotectedvirtual |
Reimplemented in CSimpleThread, and CVerySimpleThread.
| void pfc::thread::winStart | ( | int | priority, |
| DWORD * | outThreadID | ||
| ) |
Definition at line 73 of file threads.cpp.
1.8.11