vpr::OneThread Class Reference

Helper class for vpr::ThreadPool. More...

#include <vpr/Thread/ThreadPool.h>

Collaboration diagram for vpr::OneThread:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OneThread ()
 ~OneThread ()

Public Attributes

Threadthread
OneThreadnext
 Handle of the thread process.
BaseThreadFunctorfunctor
 -> next vprOneThread ready to run
bool deleteFunctor
 -> function thread is to call
Semaphore threadWait
 Flag indicating whether we delete functor.

Detailed Description

Helper class for vpr::ThreadPool.

Definition at line 58 of file ThreadPool.h.


Constructor & Destructor Documentation

vpr::OneThread::OneThread (  )  [inline]

Definition at line 61 of file ThreadPool.h.

00062       : thread(NULL)
00063       , next(NULL)
00064       , functor(NULL)
00065       , deleteFunctor(false)
00066       , threadWait(0)
00067    {
00068       ;
00069    }

vpr::OneThread::~OneThread (  )  [inline]

Definition at line 71 of file ThreadPool.h.

References deleteFunctor, and functor.

00072    {
00073       if ( deleteFunctor )
00074       {
00075          delete functor;
00076          functor = NULL;
00077       }
00078    }


Member Data Documentation

Thread* vpr::OneThread::thread

Definition at line 81 of file ThreadPool.h.

Referenced by vpr::ThreadPool::addThread(), vpr::operator<<(), and vpr::ThreadPool::~ThreadPool().

OneThread* vpr::OneThread::next

Handle of the thread process.

Definition at line 82 of file ThreadPool.h.

Referenced by vpr::ThreadPool::addThread(), vpr::ThreadPool::getThread(), vpr::ThreadPool::printList(), vpr::ThreadPool::threadSleep(), and vpr::ThreadPool::~ThreadPool().

BaseThreadFunctor* vpr::OneThread::functor

-> next vprOneThread ready to run

Definition at line 83 of file ThreadPool.h.

Referenced by vpr::ThreadPool::startFunc(), vpr::ThreadPool::threadLoop(), and ~OneThread().

bool vpr::OneThread::deleteFunctor

-> function thread is to call

Definition at line 84 of file ThreadPool.h.

Referenced by vpr::ThreadPool::startFunc(), and ~OneThread().

Semaphore vpr::OneThread::threadWait

Flag indicating whether we delete functor.

Definition at line 85 of file ThreadPool.h.

Referenced by vpr::ThreadPool::startFunc(), and vpr::ThreadPool::threadSleep().


The documentation for this class was generated from the following file:
Generated on Thu Jan 4 10:55:58 2007 for VR Juggler Portable Runtime by  doxygen 1.5.1