31 #ifndef vtkMultiThreader_h
32 #define vtkMultiThreader_h
34 #include "vtkCommonCoreModule.h"
38 #include <sys/types.h>
42 #if defined(VTK_USE_PTHREADS) || defined(VTK_HP_PTHREADS)
44 #include <sys/types.h>
70 #ifdef VTK_USE_PTHREADS
71 typedef void *(*vtkThreadFunctionType)(
void *);
78 #ifdef VTK_USE_WIN32_THREADS
86 #if !defined(VTK_USE_PTHREADS) && !defined(VTK_USE_WIN32_THREADS)
117 #define ThreadInfoStruct vtkMultiThreader::ThreadInfo
134 vtkSetClampMacro( NumberOfThreads,
int, 1, VTK_MAX_THREADS );
135 virtual int GetNumberOfThreads();
144 static void SetGlobalMaximumNumberOfThreads(
int val);
145 static int GetGlobalMaximumNumberOfThreads();
154 static void SetGlobalDefaultNumberOfThreads(
int val);
155 static int GetGlobalDefaultNumberOfThreads();
166 void SingleMethodExecute();
173 void MultipleMethodExecute();
200 void TerminateThread(
int thread_id );
205 int IsThreadActive(
int threadID );
236 int SpawnedThreadActiveFlag[VTK_MAX_THREADS];
243 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.
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