torque Torque Game Engine Documentation
TGE Version 1.5.2

Thread Class Reference

#include <platformThread.h>


Public Member Functions

 Thread (ThreadRunFunction func=0, S32 arg=0, bool start_thread=true)
virtual ~Thread ()
void start ()
bool join ()
virtual void run (S32 arg=0)
bool isAlive ()

Static Public Member Functions

static U32 getCurrentThreadId ()
static bool compareThreads (U32 thread1, U32 thread2)
static U32 getMainThread ()
static void setMainThread ()
static bool isMainThread ()

Protected Attributes

voidmData

Static Private Attributes

static U32 gMainThread


Constructor & Destructor Documentation

Thread::Thread ( ThreadRunFunction  func = 0,
S32  arg = 0,
bool  start_thread = true 
)

virtual Thread::~Thread (  )  [virtual]


Member Function Documentation

void Thread::start (  ) 

bool Thread::join (  ) 

virtual void Thread::run ( S32  arg = 0  )  [virtual]

bool Thread::isAlive (  ) 

static U32 Thread::getCurrentThreadId (  )  [static]

static bool Thread::compareThreads ( U32  thread1,
U32  thread2 
) [static]

static U32 Thread::getMainThread (  )  [static]

static void Thread::setMainThread (  )  [static]

static bool Thread::isMainThread (  )  [static]


Field Documentation

U32 Thread::gMainThread [static, private]

void* Thread::mData [protected]




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen