Open
Graph Drawing
Framework

 v.2012.05
 

ogdf::Thread Class Reference

#include <ogdf/basic/Thread.h>

List of all members.

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

Detailed Description

Definition at line 63 of file Thread.h.


Member Enumeration Documentation

Enumerator:
tpIdle 
tpLowest 
tpLow 
tpNormal 
tpHigh 
tpHighest 
tpCritical 

Definition at line 67 of file Thread.h.

Enumerator:
tsRunning 
tsSuspended 

Definition at line 66 of file Thread.h.


Constructor & Destructor Documentation

ogdf::Thread::Thread ( ) [inline]

Definition at line 77 of file Thread.h.

ogdf::Thread::~Thread ( ) [inline]

Definition at line 78 of file Thread.h.


Member Function Documentation

Definition at line 86 of file Thread.h.

virtual void ogdf::Thread::doWork ( ) [protected, pure virtual]
void ogdf::Thread::join ( ) [inline]

Definition at line 116 of file Thread.h.

bool ogdf::Thread::join ( unsigned long  milliseconds) [inline]

Definition at line 120 of file Thread.h.

void ogdf::Thread::priority ( Priority  p) [inline]

Definition at line 82 of file Thread.h.

Priority ogdf::Thread::priority ( ) const [inline]

Definition at line 84 of file Thread.h.

int ogdf::Thread::resume ( ) [inline]

Definition at line 112 of file Thread.h.

void ogdf::Thread::start ( State  state = tsRunning) [inline]

Definition at line 90 of file Thread.h.

void ogdf::Thread::start ( Priority  p,
State  state = tsRunning 
) [inline]

Definition at line 100 of file Thread.h.

bool ogdf::Thread::started ( ) const [inline]

Definition at line 80 of file Thread.h.

int ogdf::Thread::suspend ( ) [inline]

Definition at line 108 of file Thread.h.

long ogdf::Thread::threadID ( ) const [inline]

Definition at line 98 of file Thread.h.

static unsigned int __stdcall ogdf::Thread::threadProc ( void *  pParam) [inline, static, private]

Definition at line 128 of file Thread.h.


Member Data Documentation

HANDLE ogdf::Thread::m_handle [private]

Definition at line 138 of file Thread.h.

unsigned int ogdf::Thread::m_id [private]

Definition at line 139 of file Thread.h.


The documentation for this class was generated from the following file: