ThreadPool Class Reference
[Kernel Module]

#include <threadpool.h>

List of all members.


Detailed Description

ThreadPool.

Public Member Functions

 ThreadPool (ushort_t count=1)
virtual ~ThreadPool ()
bool Run (Thread::ThreadFun fun, void *data=NULL)
void Wait (bool all_requests=true)
void Kill ()

Private Types

typedef std::vector
< Thread * >
::size_type 
threads_pos_t

Private Member Functions

Request GetRequest ()

Static Private Member Functions

static void StartThread (void *data)

Private Attributes

vector< Thread * > threads
list< Requestrequests
Mutexmutex
Conditionrequest_cond
bool can_run

Classes

struct  Request

Member Typedef Documentation

typedef std::vector<Thread *>::size_type ThreadPool::threads_pos_t [private]


Constructor & Destructor Documentation

ThreadPool::ThreadPool ( ushort_t  count = 1  )  [inline]

ThreadPool::~ThreadPool (  )  [inline, virtual]


Member Function Documentation

bool ThreadPool::Run ( Thread::ThreadFun  fun,
void *  data = NULL 
) [inline]

void ThreadPool::Wait ( bool  all_requests = true  )  [inline]

void ThreadPool::Kill (  )  [inline]

void ThreadPool::StartThread ( void *  data  )  [inline, static, private]

ThreadPool::Request ThreadPool::GetRequest (  )  [inline, private]


Member Data Documentation

vector<Thread *> ThreadPool::threads [private]

list<Request> ThreadPool::requests [private]

Mutex* ThreadPool::mutex [private]

Condition* ThreadPool::request_cond [private]

bool ThreadPool::can_run [private]


The documentation for this class was generated from the following file:
Generated on Sat Oct 20 14:47:36 2007 for Dark Oberon by  doxygen 1.5.3