VTK
Classes | Macros | Typedefs
vtkMultiThreader.h File Reference
#include "vtkCommonCoreModule.h"
#include "vtkObject.h"
#include <pthread.h>
#include <sys/types.h>
#include <unistd.h>
Include dependency graph for vtkMultiThreader.h:

Go to the source code of this file.

Classes

class  vtkMultiThreader
 A class for performing multithreaded execution. More...
 
class  vtkMultiThreader::ThreadInfo
 

Macros

#define ThreadInfoStruct   vtkMultiThreader::ThreadInfo
 This is the structure that is passed to the thread that is created from the SingleMethodExecute, MultipleMethodExecute or the SpawnThread method. More...
 

Typedefs

typedef void *(* vtkThreadFunctionType) (void *)
 
typedef pthread_t vtkThreadProcessIDType
 
typedef pthread_t vtkMultiThreaderIDType
 

Macro Definition Documentation

◆ ThreadInfoStruct

#define ThreadInfoStruct   vtkMultiThreader::ThreadInfo

This is the structure that is passed to the thread that is created from the SingleMethodExecute, MultipleMethodExecute or the SpawnThread method.

It is passed in as a void *, and it is up to the method to cast correctly and extract the information. The ThreadID is a number between 0 and NumberOfThreads-1 that indicates the id of this thread. The NumberOfThreads is this->NumberOfThreads for threads created from SingleMethodExecute or MultipleMethodExecute, and it is 1 for threads created from SpawnThread. The UserData is the (void *)arg passed into the SetSingleMethod, SetMultipleMethod, or SpawnThread method.

Definition at line 104 of file vtkMultiThreader.h.

Typedef Documentation

◆ vtkThreadFunctionType

typedef void*(* vtkThreadFunctionType) (void *)

Definition at line 58 of file vtkMultiThreader.h.

◆ vtkThreadProcessIDType

typedef pthread_t vtkThreadProcessIDType

Definition at line 59 of file vtkMultiThreader.h.

◆ vtkMultiThreaderIDType

typedef pthread_t vtkMultiThreaderIDType

Definition at line 62 of file vtkMultiThreader.h.