Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ThreadInfoStruct Struct Reference

#include <vtkMultiThreader.h>

Collaboration diagram for ThreadInfoStruct:

Collaboration graph
[legend]
List of all members.

Public Attributes

int ThreadID
int NumberOfThreads
int * ActiveFlag
vtkMutexLockActiveFlagLock
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 141 of file vtkMultiThreader.h.


Member Data Documentation

int ThreadInfoStruct::ThreadID
 

Definition at line 143 of file vtkMultiThreader.h.

int ThreadInfoStruct::NumberOfThreads
 

Definition at line 144 of file vtkMultiThreader.h.

int* ThreadInfoStruct::ActiveFlag
 

Definition at line 145 of file vtkMultiThreader.h.

vtkMutexLock* ThreadInfoStruct::ActiveFlagLock
 

Definition at line 146 of file vtkMultiThreader.h.

void* ThreadInfoStruct::UserData
 

Definition at line 147 of file vtkMultiThreader.h.


The documentation for this struct was generated from the following file:
Generated on Wed Nov 21 13:00:51 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001