Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::MultiThreader::ThreadInfoStruct Struct Reference

#include <itkMultiThreader.h>

Collaboration diagram for itk::MultiThreader::ThreadInfoStruct:

Collaboration graph
[legend]
List of all members.

Public Attributes

int ThreadID
int NumberOfThreads
int * ActiveFlag
MutexLock::Pointer 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 208 of file itkMultiThreader.h.


Member Data Documentation

int* itk::MultiThreader::ThreadInfoStruct::ActiveFlag
 

Definition at line 215 of file itkMultiThreader.h.

MutexLock::Pointer itk::MultiThreader::ThreadInfoStruct::ActiveFlagLock
 

Definition at line 216 of file itkMultiThreader.h.

int itk::MultiThreader::ThreadInfoStruct::NumberOfThreads
 

Definition at line 214 of file itkMultiThreader.h.

int itk::MultiThreader::ThreadInfoStruct::ThreadID
 

Definition at line 213 of file itkMultiThreader.h.

void* itk::MultiThreader::ThreadInfoStruct::UserData
 

Definition at line 217 of file itkMultiThreader.h.


The documentation for this struct was generated from the following file:
Generated at Sun Apr 1 03:10:32 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000