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 ()
 
 UT_ThreadSet (const UT_ThreadSet &)=delete
 
UT_ThreadSetoperator= (const UT_ThreadSet &)=delete
 
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 363 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 ( )
UT_ThreadSet::UT_ThreadSet ( const UT_ThreadSet )
delete

Member Function Documentation

int UT_ThreadSet::getNumThreads ( ) const
inline

Definition at line 391 of file UT_Thread.h.

UT_Thread* UT_ThreadSet::getThread ( int  which)
void UT_ThreadSet::go ( )
UT_ThreadSet& UT_ThreadSet::operator= ( const UT_ThreadSet )
delete
UT_Thread* UT_ThreadSet::operator[] ( int  which)
inline

Definition at line 393 of file UT_Thread.h.

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

Definition at line 372 of file UT_Thread.h.

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

Definition at line 376 of file UT_Thread.h.

void UT_ThreadSet::setUserData ( void user_data)
inline

Definition at line 381 of file UT_Thread.h.

int UT_ThreadSet::wait ( int  block = 1)

Member Data Documentation

UTthreadFunc UT_ThreadSet::myFunc
protected

Definition at line 402 of file UT_Thread.h.

int UT_ThreadSet::myThreadCount
protected

Definition at line 400 of file UT_Thread.h.

UT_Thread** UT_ThreadSet::myThreads
protected

Definition at line 401 of file UT_Thread.h.

void* UT_ThreadSet::myUserData
protected

Definition at line 403 of file UT_Thread.h.

int64 UT_ThreadSet::myUserDataInc
protected

Definition at line 404 of file UT_Thread.h.


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