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_ThreadFarm (const UT_ThreadFarm &)=delete
 
UT_ThreadFarmoperator= (const UT_ThreadFarm &)=delete
 
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 407 of file UT_Thread.h.

Member Enumeration Documentation

Enumerator
NON_BLOCKING 
BLOCKING 
DYNAMIC 

Definition at line 410 of file UT_Thread.h.

Constructor & Destructor Documentation

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

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 448 of file UT_Thread.h.

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

Definition at line 449 of file UT_Thread.h.

int UT_ThreadFarm::wait ( int  block = 1)

Member Data Documentation

int UT_ThreadFarm::myThreadCount
protected

Definition at line 458 of file UT_Thread.h.

UT_Thread** UT_ThreadFarm::myThreads
protected

Definition at line 459 of file UT_Thread.h.


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