Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# IdeThreadPool Class Reference

Manager class for avoiding threading overhead when many short-lived threads are needed. More...

`#include <deThread.hpp>`

List of all members.

## Public Member Functions
virtual void | QueueUserWorkItem (IdeThread::ThreadProc function, void *parameter)=0
virtual u32 | GetAvailableThreadCount ()=0
virtual u32 | GetCurrentThreadCount ()=0
virtual void | RemoveUnusedThreads ()=0
## Protected Member Functions
virtual | ~IdeThreadPool ()

## Detailed Description

Manager class for avoiding threading overhead when many short-lived threads are needed.

## Constructor & Destructor Documentation

virtual IdeThreadPool::~IdeThreadPool | ( |  | ) | `[inline, protected, virtual]`

## Member Function Documentation

virtual u32 IdeThreadPool::GetAvailableThreadCount | ( |  | ) | `[pure virtual]`

virtual u32 IdeThreadPool::GetCurrentThreadCount | ( |  | ) | `[pure virtual]`

virtual void IdeThreadPool::QueueUserWorkItem | ( | IdeThread::ThreadProc | function,
|  | void * | parameter
| ) | `[pure virtual]`

| Adds a work item to the queue. It will be executed immediately if a thread is available to process it, otherwise it will wait for a thread to become available. This function will return immediately, whether the work item was executed or not.

virtual void IdeThreadPool::RemoveUnusedThreads | ( |  | ) | `[pure virtual]`

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

- include/deThread.hpp