18 #ifndef itkThreadSupport_h
19 #define itkThreadSupport_h
23 #include "itkConfigure.h"
25 #if defined(ITK_USE_PTHREADS)
27 #elif defined(ITK_USE_WIN32_THREADS)
37 #if defined(ITK_USE_PTHREADS)
43 # if !defined(ITK_FUTURE_LEGACY_REMOVE)
52 #elif defined(ITK_USE_WIN32_THREADS)
59 # if !defined(ITK_FUTURE_LEGACY_REMOVE)
66 # define ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION itk::ITK_THREAD_RETURN_TYPE __stdcall
74 # if !defined(ITK_FUTURE_LEGACY_REMOVE)
78 # define ITK_THREAD_RETURN_DEFAULT_VALUE
87 #if defined(ITK_USE_PTHREADS)
88 pthread_cond_t m_ConditionVariable;
89 #elif defined(ITK_USE_WIN32_THREADS)
90 int m_NumberOfWaiters;
91 CRITICAL_SECTION m_NumberOfWaitersLock;
96 HANDLE m_WaitersAreDone;
114 #if defined(ITK_USE_PTHREADS)
117 #elif defined(ITK_USE_WIN32_THREADS)
124 #if !defined(ITK_FUTURE_LEGACY_REMOVE)
126 using itk::ITK_DEFAULT_THREAD_ID;