#include <ogdf/basic/Thread.h>
Public Types | |
| enum | State { tsRunning, tsSuspended } |
| enum | Priority { tpIdle = -15, tpLowest = -2, tpLow = -1, tpNormal = 0, tpHigh = 1, tpHighest = 2, tpCritical = 15 } |
Public Member Functions | |
| Thread () | |
| ~Thread () | |
| bool | started () const |
| void | priority (Priority p) |
| Priority | priority () const |
| __uint64 | cpuAffinity (__uint64 mask) |
| void | start (State state=tsRunning) |
| long | threadID () const |
| void | start (Priority p, State state=tsRunning) |
| int | suspend () |
| int | resume () |
| void | join () |
| bool | join (unsigned long milliseconds) |
Protected Member Functions | |
| virtual void | doWork ()=0 |
Static Private Member Functions | |
| static unsigned int __stdcall | threadProc (void *pParam) |
Private Attributes | |
| HANDLE | m_handle |
| unsigned int | m_id |
| enum ogdf::Thread::State |
| ogdf::Thread::Thread | ( | ) | [inline] |
| ogdf::Thread::~Thread | ( | ) | [inline] |
| __uint64 ogdf::Thread::cpuAffinity | ( | __uint64 | mask | ) | [inline] |
| virtual void ogdf::Thread::doWork | ( | ) | [protected, pure virtual] |
| void ogdf::Thread::join | ( | ) | [inline] |
| bool ogdf::Thread::join | ( | unsigned long | milliseconds | ) | [inline] |
| void ogdf::Thread::priority | ( | Priority | p | ) | [inline] |
| Priority ogdf::Thread::priority | ( | ) | const [inline] |
| int ogdf::Thread::resume | ( | ) | [inline] |
| void ogdf::Thread::start | ( | State | state = tsRunning | ) | [inline] |
| void ogdf::Thread::start | ( | Priority | p, |
| State | state = tsRunning |
||
| ) | [inline] |
| bool ogdf::Thread::started | ( | ) | const [inline] |
| int ogdf::Thread::suspend | ( | ) | [inline] |
| long ogdf::Thread::threadID | ( | ) | const [inline] |
| static unsigned int __stdcall ogdf::Thread::threadProc | ( | void * | pParam | ) | [inline, static, private] |
HANDLE ogdf::Thread::m_handle [private] |
unsigned int ogdf::Thread::m_id [private] |