Go to the documentation of this file.
27 #ifndef vtkMultiThreader_h
28 #define vtkMultiThreader_h
34 #include <sys/types.h>
38 #if defined(VTK_USE_PTHREADS) || defined(VTK_HP_PTHREADS)
40 #include <sys/types.h>
66 #ifdef VTK_USE_PTHREADS
67 typedef void *(*vtkThreadFunctionType)(
void *);
74 #ifdef VTK_USE_WIN32_THREADS
82 #if !defined(VTK_USE_PTHREADS) && !defined(VTK_USE_WIN32_THREADS)
113 #define ThreadInfoStruct vtkMultiThreader::ThreadInfo
void MultipleMethodExecute()
GLsizei GLsizei GLenum GLenum const GLvoid * data
void SetSingleMethod(vtkThreadFunctionType, void *data)
#define VTKCOMMONCORE_EXPORT
int vtkMultiThreaderIDType
static int ThreadsEqual(vtkMultiThreaderIDType t1, vtkMultiThreaderIDType t2)
void PrintSelf(ostream &os, vtkIndent indent)
static int GetGlobalMaximumNumberOfThreads()
static void SetGlobalDefaultNumberOfThreads(int val)
mutual exclusion locking class
#define vtkTypeMacro(thisClass, superclass)
abstract base class for most VTK objects
vtkThreadFunctionType SingleMethod
int vtkThreadProcessIDType
A class for performing multithreaded execution.
#define vtkSetClampMacro(name, type, min, max)
static int GetGlobalDefaultNumberOfThreads()
void SingleMethodExecute()
a simple class to control print indentation
static void SetGlobalMaximumNumberOfThreads(int val)
static vtkMultiThreaderIDType GetCurrentThreadID()
static vtkMultiThreader * New()
int IsThreadActive(int threadID)
virtual int GetNumberOfThreads()
vtkMutexLock * ActiveFlagLock
void(* vtkThreadFunctionType)(void *)
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
void SetMultipleMethod(int index, vtkThreadFunctionType, void *data)
void TerminateThread(int thread_id)
int SpawnThread(vtkThreadFunctionType, void *data)