HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ThreadPool Class Reference

#include <IlmThreadPool.h>

Public Member Functions

 ThreadPool (unsigned numThreads=0)
 
virtual ~ThreadPool ()
 
int numThreads () const
 
void setNumThreads (int count)
 
void addTask (Task *task)
 

Static Public Member Functions

static ThreadPoolglobalThreadPool ()
 
static void addGlobalTask (Task *task)
 

Protected Attributes

Data * _data
 

Detailed Description

Definition at line 73 of file IlmThreadPool.h.

Constructor & Destructor Documentation

ThreadPool::ThreadPool ( unsigned  numThreads = 0)
virtual ThreadPool::~ThreadPool ( )
virtual

Member Function Documentation

static void ThreadPool::addGlobalTask ( Task task)
static
void ThreadPool::addTask ( Task task)
static ThreadPool& ThreadPool::globalThreadPool ( )
static
int ThreadPool::numThreads ( ) const
void ThreadPool::setNumThreads ( int  count)

Member Data Documentation

Data* ThreadPool::_data
protected

Definition at line 122 of file IlmThreadPool.h.


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