Public Member Functions | Static Public Member Functions | Protected Attributes

Threads::Thread Class Reference

is the base class for all threads. Start it by creating it and give it the function or CallBack to execute. More...

List of all members.

Public Member Functions

 Thread (void(*)(void *))
 Thread (const CallBack &)
virtual ~Thread ()
void stop ()

Static Public Member Functions

static void * currentThread ()

Protected Attributes

QThread * thread_

Detailed Description

is the base class for all threads. Start it by creating it and give it the function or CallBack to execute.

The process that has created the thread must call destroy() or detach().


Constructor & Destructor Documentation

Threads::Thread::Thread ( void(*)(void *)   ) 
Threads::Thread::Thread ( const CallBack  ) 
virtual Threads::Thread::~Thread (  )  [virtual]

Member Function Documentation

static void* Threads::Thread::currentThread (  )  [static]
void Threads::Thread::stop (  ) 

Stop the thread with this function. Will wait for the thread to return.


Member Data Documentation

QThread* Threads::Thread::thread_ [protected]