MPMA Framework 0.4
Public Member Functions
MPMA::ThreadPool Class Reference

A pool of pre-created threads. More...

#include <Thread.h>

List of all members.

Public Member Functions

 ThreadPool (nuint initialThreads=1, nuint maxThreads=100)
 ctor
 ~ThreadPool ()
 When this object destructs, we block until all threads are returned to the pool.
void RunThread (ThreadFunc proc, ThreadParam param)
 Exectutes a function on a thread in the pool. The thread returns to the pool when the function returns. Blocks if needed until there is a thread available.

Detailed Description

A pool of pre-created threads.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends