HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ThreadSet Class Reference

#include <UT_Thread.h>

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 (UT_Thread::SpinMode 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
 
voidmyUserData
 
int64 myUserDataInc
 

Detailed Description

Definition at line 312 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 337 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 339 of file UT_Thread.h.

void UT_ThreadSet::reuse ( UT_Thread::SpinMode  spin_mode)
void UT_ThreadSet::setFunc ( UTthreadFunc  func)
inline

Definition at line 318 of file UT_Thread.h.

void UT_ThreadSet::setUserData ( void user_data_array,
size_t  structlen 
)
inline

Definition at line 322 of file UT_Thread.h.

void UT_ThreadSet::setUserData ( void user_data)
inline

Definition at line 327 of file UT_Thread.h.

int UT_ThreadSet::wait ( int  block = 1)

Member Data Documentation

UTthreadFunc UT_ThreadSet::myFunc
protected

Definition at line 348 of file UT_Thread.h.

int UT_ThreadSet::myThreadCount
protected

Definition at line 346 of file UT_Thread.h.

UT_Thread** UT_ThreadSet::myThreads
protected

Definition at line 347 of file UT_Thread.h.

void* UT_ThreadSet::myUserData
protected

Definition at line 349 of file UT_Thread.h.

int64 UT_ThreadSet::myUserDataInc
protected

Definition at line 350 of file UT_Thread.h.


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