2005/5/9

     
 

class PooledThread

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::make::PooledThread Class Reference

#include <ThreadPool.h>

Inheritance diagram for acdk::make::PooledThread:

acdk::lang::Thread acdk::lang::Object acdk::lang::Runnable acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

A Thread, which will be managed by a ThreadPool API: ACDK

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.7
Date:
Date
2005/04/08 10:53:20
See also:
ThreadPool


Public Member Functions

 PooledThread (IN(RThreadPool) threadPool=Nil)
void setThreadPool (IN(RThreadPool) threadPool)
bool isActive ()
void setQuit ()
void setActive (bool active)
void setJob (IN(RJob) job)
virtual void run ()
 overload this method to implement working code for this thread


Protected Attributes

bool _active
bool _quit
RJob _job
RThreadPool _threadPool
::acdk::lang::sys::core_semaphore _boring


Constructor & Destructor Documentation

acdk::make::PooledThread::PooledThread IN(RThreadPool threadPool = Nil  ) 
 


Member Function Documentation

bool acdk::make::PooledThread::isActive  ) 
 

virtual void acdk::make::PooledThread::run  )  [virtual]
 

overload this method to implement working code for this thread

Reimplemented from acdk::lang::Thread.

void acdk::make::PooledThread::setActive bool  active  ) 
 

void acdk::make::PooledThread::setJob IN(RJob job  )  [inline]
 

void acdk::make::PooledThread::setQuit  ) 
 

void acdk::make::PooledThread::setThreadPool IN(RThreadPool threadPool  )  [inline]
 


Member Data Documentation

bool acdk::make::PooledThread::_active [protected]
 

::acdk::lang::sys::core_semaphore acdk::make::PooledThread::_boring [protected]
 

RJob acdk::make::PooledThread::_job [protected]
 

bool acdk::make::PooledThread::_quit [protected]
 

RThreadPool acdk::make::PooledThread::_threadPool [protected]