HDK
|
#include <IlmThreadPool.h>
Public Member Functions | |
ILMTHREAD_EXPORT | ThreadPool (unsigned numThreads=0) |
virtual ILMTHREAD_EXPORT | ~ThreadPool () |
ThreadPool (const ThreadPool &)=delete | |
ThreadPool & | operator= (const ThreadPool &)=delete |
ThreadPool (ThreadPool &&)=delete | |
ThreadPool & | operator= (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 |
Definition at line 73 of file IlmThreadPool.h.
ILMTHREAD_EXPORT ThreadPool::ThreadPool | ( | unsigned | numThreads = 0 | ) |
|
virtual |
|
delete |
|
delete |
|
static |
ILMTHREAD_EXPORT void ThreadPool::addTask | ( | Task * | task | ) |
|
static |
|
static |
ILMTHREAD_EXPORT int ThreadPool::numThreads | ( | ) | const |
|
delete |
|
delete |
ILMTHREAD_EXPORT void ThreadPool::setNumThreads | ( | int | count | ) |
ILMTHREAD_EXPORT void ThreadPool::setThreadProvider | ( | ThreadPoolProvider * | provider | ) |
|
protected |
Definition at line 152 of file IlmThreadPool.h.
struct ILMTHREAD_HIDDEN ThreadPool::Data |
Definition at line 149 of file IlmThreadPool.h.