28 #ifndef __itkMultiThreader_h
29 #define __itkMultiThreader_h
53 class ITKCommon_EXPORT MultiThreader:
public Object
57 typedef MultiThreader Self;
58 typedef Object Superclass;
59 typedef SmartPointer< Self > Pointer;
60 typedef SmartPointer< const Self > ConstPointer;
66 itkTypeMacro(MultiThreader, Object);
80 static void SetGlobalMaximumNumberOfThreads(
ThreadIdType val);
88 static void SetGlobalDefaultNumberOfThreads(
ThreadIdType val);
96 void SingleMethodExecute();
102 void MultipleMethodExecute();
134 #ifdef ThreadInfoStruct
135 #undef ThreadInfoStruct
137 struct ThreadInfoStruct {
144 enum { SUCCESS, ITK_EXCEPTION, ITK_PROCESS_ABORTED_EXCEPTION, STD_EXCEPTION, UNKNOWN } ThreadExitCode;
149 void PrintSelf(std::ostream & os, Indent indent)
const;
153 MultiThreader(
const Self &);
154 void operator=(
const Self &);
190 static ThreadIdType GetGlobalDefaultNumberOfThreadsByPlatform();