Documentation for vtkMultiThreader

vtkMultiThreader - A class for performing multithreaded execution

Super Class: vtkObject

Description:

vtkMultithreader is a class that provides support for multithreaded execution using sproc() on an SGI, or pthread_create on any platform supporting POSIX threads. This class can be used to execute a single method on multiple threads, or to specify a method per thread.

 

Methods:

void vtkMultiThreader ()
void vtkMultiThreader ()
static vtkMultiThreader *New ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
void SetNumberOfThreads (int )
int GetNumberOfThreads ()
static void SetGlobalMaximumNumberOfThreads (int )
static int GetGlobalMaximumNumberOfThreads ()

 

Detailed Method Descriptions:

Get/Set the number of threads to create. It will be clamped to the range 1 - VTK_MAX_THREADS, so the caller of this method should check that the requested number of threads was accepted.

void SetNumberOfThreads (int )
int GetNumberOfThreads ()

Set/Get the maximum number of threads to use when multithreading. This limits and overrides any other settings for multithreading. A value of zero indicates no limit.

static void SetGlobalMaximumNumberOfThreads (int )
static int GetGlobalMaximumNumberOfThreads ()