WorkerMainLoop Class Reference

#include <ThreadPool.h>

Collaboration diagram for WorkerMainLoop:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 WorkerMainLoop (WorkerState *st, boost::condition &c1, boost::mutex &m1, boost::condition &c2, boost::mutex &m2)
virtual ~WorkerMainLoop ()
void operator() ()

Protected Attributes

condition & cond1
mutex & mtx1
condition & cond2
mutex & mtx2
WorkerStatestate


Detailed Description

Definition at line 46 of file ThreadPool.h.


Constructor & Destructor Documentation

WorkerMainLoop::WorkerMainLoop ( WorkerState st,
boost::condition &  c1,
boost::mutex &  m1,
boost::condition &  c2,
boost::mutex &  m2 
)

Definition at line 8 of file ThreadPool.cpp.

References state, and WorkerState::toBeFinished.

WorkerMainLoop::~WorkerMainLoop (  )  [virtual]

Definition at line 34 of file ThreadPool.cpp.


Member Function Documentation

void WorkerMainLoop::operator() (  ) 

Definition at line 17 of file ThreadPool.cpp.

References cond1, cond2, WorkerState::job, mtx1, mtx2, state, and WorkerState::toBeFinished.


Member Data Documentation

condition& WorkerMainLoop::cond1 [protected]

Definition at line 58 of file ThreadPool.h.

Referenced by operator()().

mutex& WorkerMainLoop::mtx1 [protected]

Definition at line 59 of file ThreadPool.h.

Referenced by operator()().

condition& WorkerMainLoop::cond2 [protected]

Definition at line 62 of file ThreadPool.h.

Referenced by operator()().

mutex& WorkerMainLoop::mtx2 [protected]

Definition at line 63 of file ThreadPool.h.

Referenced by operator()().

Definition at line 65 of file ThreadPool.h.

Referenced by operator()(), and WorkerMainLoop().


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

Generated on Wed Jul 9 16:34:55 2008 for PCSIM by  doxygen 1.5.5