ThreadedTestBaseTask Class Reference

#include <ThreadedTestBase.h>

List of all members.

Public Member Functions

 ThreadedTestBaseTask (ThreadedTestBase &testCaseInit, int iOpInit)
void execute ()

Private Attributes

ThreadedTestBasetest
int iOp


Detailed Description

Definition at line 95 of file ThreadedTestBase.h.


Constructor & Destructor Documentation

ThreadedTestBaseTask::ThreadedTestBaseTask ( ThreadedTestBase testCaseInit,
int  iOpInit 
) [explicit]

Definition at line 91 of file ThreadedTestBase.cpp.

00094     : test(testInit), iOp(iOpInit)
00095 {
00096 }


Member Function Documentation

void ThreadedTestBaseTask::execute (  ) 

Definition at line 98 of file ThreadedTestBase.cpp.

References ThreadedTestBase::bDone, iOp, ThreadedTestBase::pStartBarrier, test, ThreadedTestBase::testThreadedOp(), ThreadedTestBase::threadInit(), and ThreadedTestBase::threadTerminate().

00099 {
00100     test.threadInit();
00101     test.pStartBarrier->wait();
00102     try {
00103         while (!test.bDone) {
00104             if (!test.testThreadedOp(iOp)) {
00105                 break;
00106             }
00107         }
00108     } catch (...) {
00109         test.threadTerminate();
00110         throw;
00111     }
00112     test.threadTerminate();
00113 }


Member Data Documentation

ThreadedTestBase& ThreadedTestBaseTask::test [private]

Definition at line 97 of file ThreadedTestBase.h.

Referenced by execute().

int ThreadedTestBaseTask::iOp [private]

Definition at line 98 of file ThreadedTestBase.h.

Referenced by execute().


The documentation for this class was generated from the following files:
Generated on Mon Jun 22 04:00:48 2009 for Fennel by  doxygen 1.5.1