Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL::Thread class Reference

TNL::Thread Class Reference

#include <tnlThread.h>

Inheritance diagram for TNL::Thread:

TNL::Object TNL::ThreadQueue::ThreadQueueThread

Detailed Description

Platform independent Thread class.


Public Member Functions

virtual U32 run ()=0
 run function called when thread is started.

 Thread ()
 Thread constructor.

 ~Thread ()
 Thread destructor.

void start ()
 starts the thread's main run function.


Protected Attributes

U32 mReturnValue
 Return value from thread function.

pthread_t mThread


Constructor & Destructor Documentation

TNL::Thread::Thread  ) 
 

Thread constructor.

TNL::Thread::~Thread  ) 
 

Thread destructor.


Member Function Documentation

virtual U32 TNL::Thread::run  )  [pure virtual]
 

run function called when thread is started.

Implemented in TNL::ThreadQueue::ThreadQueueThread.

void TNL::Thread::start  ) 
 

starts the thread's main run function.


Field Documentation

U32 TNL::Thread::mReturnValue [protected]
 

Return value from thread function.

pthread_t TNL::Thread::mThread [protected]