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

#include <IlmThreadPool.h>

Public Member Functions

ILMTHREAD_EXPORT ThreadPool (unsigned numThreads=0)
 
virtual ILMTHREAD_EXPORT ~ThreadPool ()
 
 ThreadPool (const ThreadPool &)=delete
 
ThreadPooloperator= (const ThreadPool &)=delete
 
 ThreadPool (ThreadPool &&)=delete
 
ThreadPooloperator= (ThreadPool &&)=delete
 
ILMTHREAD_EXPORT int numThreads () const
 
ILMTHREAD_EXPORT void setNumThreads (int count)
 
ILMTHREAD_EXPORT void setThreadProvider (ThreadPoolProvider *provider)
 
ILMTHREAD_EXPORT void addTask (Task *task)
 

Static Public Member Functions

static ILMTHREAD_EXPORT unsigned estimateThreadCountForFileIO ()
 
static ILMTHREAD_EXPORT
ThreadPool
globalThreadPool ()
 
static ILMTHREAD_EXPORT void addGlobalTask (Task *task)
 

Public Attributes

struct ILMTHREAD_HIDDEN Data
 

Protected Attributes

Data_data
 

Detailed Description

Definition at line 74 of file IlmThreadPool.h.

Constructor & Destructor Documentation

ILMTHREAD_EXPORT ThreadPool::ThreadPool ( unsigned  numThreads = 0)
virtual ILMTHREAD_EXPORT ThreadPool::~ThreadPool ( )
virtual
ThreadPool::ThreadPool ( const ThreadPool )
delete
ThreadPool::ThreadPool ( ThreadPool &&  )
delete

Member Function Documentation

static ILMTHREAD_EXPORT void ThreadPool::addGlobalTask ( Task task)
static
ILMTHREAD_EXPORT void ThreadPool::addTask ( Task task)
static ILMTHREAD_EXPORT unsigned ThreadPool::estimateThreadCountForFileIO ( )
static
static ILMTHREAD_EXPORT ThreadPool& ThreadPool::globalThreadPool ( )
static
ILMTHREAD_EXPORT int ThreadPool::numThreads ( ) const
ThreadPool& ThreadPool::operator= ( const ThreadPool )
delete
ThreadPool& ThreadPool::operator= ( ThreadPool &&  )
delete
ILMTHREAD_EXPORT void ThreadPool::setNumThreads ( int  count)
ILMTHREAD_EXPORT void ThreadPool::setThreadProvider ( ThreadPoolProvider provider)

Member Data Documentation

Data* ThreadPool::_data
protected

Definition at line 156 of file IlmThreadPool.h.

struct ILMTHREAD_HIDDEN ThreadPool::Data

Definition at line 152 of file IlmThreadPool.h.


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