#include <vpr/Thread/ThreadPool.h>
Collaboration diagram for vpr::OneThread:

Public Member Functions | |
| OneThread () | |
| ~OneThread () | |
Public Attributes | |
| Thread * | thread |
| OneThread * | next |
| Handle of the thread process. | |
| BaseThreadFunctor * | functor |
| -> next vprOneThread ready to run | |
| bool | deleteFunctor |
| -> function thread is to call | |
| Semaphore | threadWait |
| Flag indicating whether we delete functor. | |
Definition at line 58 of file ThreadPool.h.
| 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 }
Definition at line 81 of file ThreadPool.h.
Referenced by vpr::ThreadPool::addThread(), vpr::operator<<(), and vpr::ThreadPool::~ThreadPool().
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().
-> next vprOneThread ready to run
Definition at line 83 of file ThreadPool.h.
Referenced by vpr::ThreadPool::startFunc(), vpr::ThreadPool::threadLoop(), and ~OneThread().
-> function thread is to call
Definition at line 84 of file ThreadPool.h.
Referenced by vpr::ThreadPool::startFunc(), and ~OneThread().
Flag indicating whether we delete functor.
Definition at line 85 of file ThreadPool.h.
Referenced by vpr::ThreadPool::startFunc(), and vpr::ThreadPool::threadSleep().
1.5.1