Thread Class Reference

#include <Thread.h>

Inheritance diagram for Thread:

BluetoothLinuxFeatureProvider GSMFeatureProvider Scanner SystemCommandStringListFeatureProvider VideoFeatureProvider WlanLinuxFeatureProvider NetworkFeatureProvider WlanAccessPointFeatureProvider List of all members.

Public Member Functions

 Thread ()
virtual ~Thread ()
void start ()
void cancel ()
void join ()
void terminate ()

Static Public Member Functions

static void sleep (unsigned milliseconds)

Protected Member Functions

virtual void run ()=0
bool isCancelled ()

Classes

class  Guard
class  Lock
class  ThreadHandle

Detailed Description

Platform independent thread class


Constructor & Destructor Documentation

Thread::Thread  ) 
 

Constructor

Thread::~Thread  )  [virtual]
 

Destructor


Member Function Documentation

void Thread::cancel  ) 
 

End thread execution

bool Thread::isCancelled  )  [protected]
 

Returns:
true if the thread is cancelled, false if the thread is still running

void Thread::join  ) 
 

Join thread

virtual void Thread::run  )  [protected, pure virtual]
 

Thread main worker function

Implemented in BluetoothLinuxFeatureProvider, GSMFeatureProvider, SystemCommandStringListFeatureProvider, VideoFeatureProvider, WlanLinuxFeatureProvider, and Scanner.

void Thread::sleep unsigned  milliseconds  )  [static]
 

sleep function

Parameters:
milliseconds Timeout in milliseconds

void Thread::start  ) 
 

Start thread execution

void Thread::terminate  ) 
 

Terminate thread execution


The documentation for this class was generated from the following files:
Generated on Mon Jun 5 10:20:50 2006 for Intelligence.kdevelop by  doxygen 1.4.6