HDK
|
#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_ThreadFarm & | operator= (const UT_ThreadFarm &)=delete |
UT_Thread * | nextThread (int *thread_index=0, AssignmentStyle style=BLOCKING) |
int | wait (int block=1) |
void | cleanup (int kill=0) |
int | getEntries () const |
UT_Thread * | operator[] (int index) |
Protected Member Functions | |
void | addThreads (int thread_count) |
Protected Attributes | |
int | myThreadCount |
UT_Thread ** | myThreads |
Definition at line 407 of file UT_Thread.h.
Enumerator | |
---|---|
NON_BLOCKING | |
BLOCKING | |
DYNAMIC |
Definition at line 410 of file UT_Thread.h.
UT_ThreadFarm::UT_ThreadFarm | ( | int | nthreads = -1 | ) |
UT_ThreadFarm::~UT_ThreadFarm | ( | ) |
|
delete |
|
inline |
Definition at line 448 of file UT_Thread.h.
UT_Thread* UT_ThreadFarm::nextThread | ( | int * | thread_index = 0 , |
AssignmentStyle | style = BLOCKING |
||
) |
|
delete |
Definition at line 449 of file UT_Thread.h.
|
protected |
Definition at line 458 of file UT_Thread.h.
|
protected |
Definition at line 459 of file UT_Thread.h.