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

#include <UT_Thread.h>

Public Types

enum  AssignmentStyle { NON_BLOCKING = 0, BLOCKING = 1, DYNAMIC = 2 }
 

Public Member Functions

 UT_ThreadFarm (int nthreads=-1)
 
 ~UT_ThreadFarm ()
 
UT_ThreadnextThread (int *thread_index=0, AssignmentStyle style=BLOCKING)
 
int wait (int block=1)
 
void cleanup (int kill=0)
 
int getEntries () const
 
UT_Threadoperator[] (int index)
 

Protected Member Functions

void addThreads (int thread_count)
 

Protected Attributes

int myThreadCount
 
UT_Thread ** myThreads
 

Detailed Description

Definition at line 353 of file UT_Thread.h.

Member Enumeration Documentation

Enumerator
NON_BLOCKING 
BLOCKING 
DYNAMIC 

Definition at line 356 of file UT_Thread.h.

Constructor & Destructor Documentation

UT_ThreadFarm::UT_ThreadFarm ( int  nthreads = -1)
UT_ThreadFarm::~UT_ThreadFarm ( )

Member Function Documentation

void UT_ThreadFarm::addThreads ( int  thread_count)
protected
void UT_ThreadFarm::cleanup ( int  kill = 0)
int UT_ThreadFarm::getEntries ( ) const
inline

Definition at line 391 of file UT_Thread.h.

UT_Thread* UT_ThreadFarm::nextThread ( int thread_index = 0,
AssignmentStyle  style = BLOCKING 
)
UT_Thread* UT_ThreadFarm::operator[] ( int  index)
inline

Definition at line 392 of file UT_Thread.h.

int UT_ThreadFarm::wait ( int  block = 1)

Member Data Documentation

int UT_ThreadFarm::myThreadCount
protected

Definition at line 401 of file UT_Thread.h.

UT_Thread** UT_ThreadFarm::myThreads
protected

Definition at line 402 of file UT_Thread.h.


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