ITK  4.13.0
Insight Segmentation and Registration Toolkit
Public Member Functions | Public Attributes | List of all members
itk::ThreadJob Class Reference

#include <itkThreadJob.h>

Detailed Description

This class is used to submit jobs to the thread pool.

The thread job contains information of the submitted job: the function to be executed in parallel the function's argument a pointer to the semaphore to wait on for job completion.

Definition at line 56 of file itkThreadJob.h.

Public Member Functions

 ThreadJob ()
 ~ThreadJob ()

Public Attributes

Semaphore * m_Semaphore
void * m_UserData
void *(* m_ThreadFunction )(void *ptr)

Constructor & Destructor Documentation

itk::ThreadJob::ThreadJob ( )

Definition at line 70 of file itkThreadJob.h.

itk::ThreadJob::~ThreadJob ( )

Definition at line 77 of file itkThreadJob.h.

Member Data Documentation

Semaphore* itk::ThreadJob::m_Semaphore

This is the Job's id. Used for waiting on this job's completion.

Definition at line 91 of file itkThreadJob.h.

void*(* itk::ThreadJob::m_ThreadFunction)(void *ptr)

Function that will be called.

Definition at line 86 of file itkThreadJob.h.

void* itk::ThreadJob::m_UserData

Stores the user's data that needs to be passed into the function.

Definition at line 94 of file itkThreadJob.h.

The documentation for this class was generated from the following file: