Classes | Namespaces | Functions

cmtkThreadPool.h File Reference

Go to the source code of this file.

Classes

class  cmtk::ThreadPool
 Class that provides a pool of continuously running threads that can be used for reducing overhead in SMP computations. More...
class  cmtk::ThreadPool::ThreadPoolArg
 Thread function arguments: identify pool and index of thread in it. More...

Namespaces

namespace  cmtk

Functions

CMTK_THREAD_RETURN_TYPE cmtkThreadPoolThreadFunction (CMTK_THREAD_ARG_TYPE arg)
 This is the actual low-level thread function. It calls ThreadFunction() for the cmtk::ThreadPool instance given as the function parameter.

Function Documentation

CMTK_THREAD_RETURN_TYPE cmtkThreadPoolThreadFunction ( CMTK_THREAD_ARG_TYPE  arg )

This is the actual low-level thread function. It calls ThreadFunction() for the cmtk::ThreadPool instance given as the function parameter.

Parameters:
argThis is a pointer to the cmtk::ThreadPool instance.

Definition at line 197 of file cmtkThreadPool.cxx.

References CMTK_THREAD_RETURN_VALUE.

Referenced by cmtk::ThreadPool::StartThreads().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines