19 #ifndef itkThreadJob_h
20 #define itkThreadJob_h
25 #if defined(ITK_USE_PTHREADS)
27 #include <semaphore.h>
29 #elif defined(ITK_USE_WIN32_THREADS)
34 #include <mach/mach_init.h>
35 #include <mach/mach_error.h>
36 #include <mach/semaphore.h>
37 #include <mach/task.h>
38 #include <mach/task_info.h>
60 #if defined(ITK_USE_PTHREADS) && defined(__APPLE__)
61 typedef semaphore_t Semaphore;
62 #elif defined(ITK_USE_WIN32_THREADS)
63 typedef HANDLE Semaphore;
64 #elif defined(ITK_USE_PTHREADS)
65 typedef sem_t Semaphore;
67 #error Unknown thread system!
83 #if defined(_WIN32) || defined(_WIN64)
86 void * (*m_ThreadFunction)(
void *ptr);
99 #endif // itkThreadJob_h
void(* ThreadFunctionType)(void *)
This class is used to submit jobs to the thread pool.
void *(* m_ThreadFunction)(void *ptr)