CLAM-Development  1.4.0
Public Member Functions
CLAM::PooledThread Class Reference

#include <PooledThread.hxx>

List of all members.

Public Member Functions

 PooledThread (CLAM::ThreadPool *myThreadPool, bool realtime=true)
 ~PooledThread ()
void Start ()
void ReturnToPool ()
- Public Member Functions inherited from CLAM::Thread
 Thread (bool realtime=false)
virtual ~Thread ()
virtual void Stop ()
void Sleep ()
void Sleep (unsigned int milliseconds)
void WakeUp ()
void Yield ()
void SetThreadCode (const CBL::Functor0 &thread_code)
void SetCleanupCode (const CBL::Functor0 &cleanup_code)
bool operator== (const Thread &other) const
bool IsCancelled () const
bool IsRunning () const

Additional Inherited Members

- Protected Member Functions inherited from CLAM::Thread
virtual void SetupPriorityPolicy ()
- Protected Attributes inherited from CLAM::Thread
bool mRealtime
bool mHasCode
bool mHasCleanup
pthread_t mThreadID
bool mIsCancelled
bool mRunning
CBL::Functor0 mThreadCode
CBL::Functor0 mCleanUpCode
Condition mSleepCondition

Detailed Description

Definition at line 32 of file PooledThread.hxx.


Constructor & Destructor Documentation

CLAM::PooledThread::PooledThread ( CLAM::ThreadPool myThreadPool,
bool  realtime = true 
)

Definition at line 8 of file PooledThread.cxx.

CLAM::PooledThread::~PooledThread ( )

Definition at line 13 of file PooledThread.cxx.


Member Function Documentation

void CLAM::PooledThread::ReturnToPool ( )

Definition at line 29 of file PooledThread.cxx.

References CLAM::ThreadPool::ReturnThreadToPool().

void CLAM::PooledThread::Start ( void  )
virtual

Reimplemented from CLAM::Thread.

Definition at line 17 of file PooledThread.cxx.

References CLAM::Thread::mRunning, CLAM::Thread::mThreadID, and NULL.


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