#include <ThreadedTestBase.h>
Public Member Functions | |
ThreadedTestBaseTask (ThreadedTestBase &testCaseInit, int iOpInit) | |
void | execute () |
Private Attributes | |
ThreadedTestBase & | test |
int | iOp |
Definition at line 95 of file ThreadedTestBase.h.
ThreadedTestBaseTask::ThreadedTestBaseTask | ( | ThreadedTestBase & | testCaseInit, | |
int | iOpInit | |||
) | [explicit] |
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 }
ThreadedTestBase& ThreadedTestBaseTask::test [private] |
int ThreadedTestBaseTask::iOp [private] |