Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

mitkSPMD Class Reference

#include <mitkSPMD.h>

Inherits mitkObject.

Inherited by mitkSPMDDelegate.

Inheritance diagram for mitkSPMD:

Inheritance graph
[legend]
Collaboration diagram for mitkSPMD:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void SetNumberOfThreads (int NumberOfThreads)
int GetNumberOfThreads () const
void RunSPMD ()

Static Public Member Functions

static int GetGlobalDefaultNumberOfThreads ()

Detailed Description

mitkSPMD - A threading tool that implements a SPMD (Single Program Multiple Data) style multi-thread execution.

mitkSPMD is a threading tool that implements a SPMD (Single Program Multiple Data) style multi-thread execution. mitkSPMD will create a number of threads, and each thread will end up calling the virtual protected function ThreadExecute with their unique identifier, which can be used to decide the part of data to be processed, since the memory is shared among threads.


Member Function Documentation

static int mitkSPMD::GetGlobalDefaultNumberOfThreads  )  [static]
 

Acquire the default number of threads according to the number of hardware processors(cores)

Returns:
Return the global default number of threads

int mitkSPMD::GetNumberOfThreads  )  const [inline]
 

Get the number of threads to be created

Returns:
return the number of threads to be created the default value is the GlobalDefaultNumberOfThreads

void mitkSPMD::RunSPMD  ) 
 

Perform the SPMD execution

void mitkSPMD::SetNumberOfThreads int  NumberOfThreads  ) 
 

Set the number of threads to be created

Parameters:
NumberOfThreads Specify the number of threads to be created must be greater or equal than 1, and the default value is the GlobalDefaultNumberOfThreads


The documentation for this class was generated from the following file:
Generated on Tue Feb 25 15:06:03 2014 for MITK (Medical Imaging ToolKit) by  doxygen 1.4.3