31 #ifndef vtkMultiThreader_h 32 #define vtkMultiThreader_h 34 #include "vtkCommonCoreModule.h" 37 #if defined(VTK_USE_PTHREADS) 39 #include <sys/types.h> 57 #ifdef VTK_USE_PTHREADS 58 typedef void *(*vtkThreadFunctionType)(
void *);
65 #ifdef VTK_USE_WIN32_THREADS 73 #if !defined(VTK_USE_PTHREADS) && !defined(VTK_USE_WIN32_THREADS) 119 vtkSetClampMacro( NumberOfThreads,
int, 1, VTK_MAX_THREADS );
120 virtual int GetNumberOfThreads();
129 static void SetGlobalMaximumNumberOfThreads(
int val);
130 static int GetGlobalMaximumNumberOfThreads();
139 static void SetGlobalDefaultNumberOfThreads(
int val);
140 static int GetGlobalDefaultNumberOfThreads();
151 void SingleMethodExecute();
158 void MultipleMethodExecute();
185 void TerminateThread(
int thread_id );
221 int SpawnedThreadActiveFlag[VTK_MAX_THREADS];
228 void *MultipleData[VTK_MAX_THREADS];
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void(* vtkThreadFunctionType)(void *)
vtkMutexLock * ActiveFlagLock
A class for performing multithreaded execution.
This is the structure that is passed to the thread that is created from the SingleMethodExecute, MultipleMethodExecute or the SpawnThread method.
int vtkMultiThreaderIDType
a simple class to control print indentation
int vtkThreadProcessIDType
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
mutual exclusion locking class
vtkThreadFunctionType SingleMethod