UT_ThreadSet Class Reference

#include <UT_Thread.h>

List of all members.

Public Member Functions

 UT_ThreadSet (int nthreads=-1, int null_thread_if_1_cpu=0)
 ~UT_ThreadSet ()
void setFunc (UTthreadFunc func)
void setUserData (void *user_data_array, size_t structlen)
void setUserData (void *user_data)
void reuse (int spin_mode)
void go ()
int wait (int block=1)
int getNumThreads () const
UT_ThreadgetThread (int which)
UT_Threadoperator[] (int which)

Protected Attributes

int myThreadCount
UT_Thread ** myThreads
UTthreadFunc myFunc
void * myUserData
int64 myUserDataInc


Detailed Description

Definition at line 211 of file UT_Thread.h.


Constructor & Destructor Documentation

UT_ThreadSet::UT_ThreadSet ( int  nthreads = -1,
int  null_thread_if_1_cpu = 0 
)

UT_ThreadSet::~UT_ThreadSet (  ) 


Member Function Documentation

int UT_ThreadSet::getNumThreads (  )  const [inline]

Definition at line 236 of file UT_Thread.h.

UT_Thread* UT_ThreadSet::getThread ( int  which  ) 

void UT_ThreadSet::go (  ) 

UT_Thread* UT_ThreadSet::operator[] ( int  which  )  [inline]

Definition at line 238 of file UT_Thread.h.

void UT_ThreadSet::reuse ( int  spin_mode  ) 

void UT_ThreadSet::setFunc ( UTthreadFunc  func  )  [inline]

Definition at line 217 of file UT_Thread.h.

void UT_ThreadSet::setUserData ( void *  user_data  )  [inline]

Definition at line 226 of file UT_Thread.h.

void UT_ThreadSet::setUserData ( void *  user_data_array,
size_t  structlen 
) [inline]

Definition at line 221 of file UT_Thread.h.

int UT_ThreadSet::wait ( int  block = 1  ) 


Member Data Documentation

Definition at line 247 of file UT_Thread.h.

int UT_ThreadSet::myThreadCount [protected]

Definition at line 245 of file UT_Thread.h.

Definition at line 246 of file UT_Thread.h.

void* UT_ThreadSet::myUserData [protected]

Definition at line 248 of file UT_Thread.h.

Definition at line 249 of file UT_Thread.h.


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

Generated on Fri May 25 00:10:55 2012 for HDK by  doxygen 1.5.9