VTK  9.1.0
Public Attributes | List of all members
vtkMultiThreader::ThreadInfo Class Reference

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

#include <vtkMultiThreader.h>

Public Attributes

int ThreadID
 
int NumberOfThreads
 
int * ActiveFlag
 
std::mutex * ActiveFlagLock
 
void * UserData
 

Detailed Description

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 96 of file vtkMultiThreader.h.

Member Data Documentation

◆ ThreadID

int vtkMultiThreader::ThreadInfo::ThreadID

Definition at line 99 of file vtkMultiThreader.h.

◆ NumberOfThreads

int vtkMultiThreader::ThreadInfo::NumberOfThreads

Definition at line 100 of file vtkMultiThreader.h.

◆ ActiveFlag

int* vtkMultiThreader::ThreadInfo::ActiveFlag

Definition at line 101 of file vtkMultiThreader.h.

◆ ActiveFlagLock

std::mutex* vtkMultiThreader::ThreadInfo::ActiveFlagLock

Definition at line 102 of file vtkMultiThreader.h.

◆ UserData

void* vtkMultiThreader::ThreadInfo::UserData

Definition at line 103 of file vtkMultiThreader.h.


The documentation for this class was generated from the following file: