SourcePro® C++ API Reference Guide

Product Documentation:
   SourcePro C++
Documentation Home
List of all members | Public Member Functions
RWQEMTPerfTestRunner< T > Class Template Reference

#include <rw/rwtest/perf/RWQEMTPerfTestRunner.h>

Inherits RWQEThread.

Public Member Functions

 RWQEMTPerfTestRunner (T test, std::function< void(const RWQEPerfTestResult &)> resultHandler, std::function< void(std::string &)> exceptionHandler, std::function< bool(uint64_t, uint64_t)> stopTest, std::function< void()> barrier, const RWQEPerfTestDef &def)
 
 RWQEMTPerfTestRunner (const RWQEMTPerfTestRunner &rhs)
 
virtual void _run ()
 

Detailed Description

template<typename T>
class RWQEMTPerfTestRunner< T >

RWQEMTPerfTestRunner encapsulates a TestRunner that is executed in a separate thread.

Constructor & Destructor Documentation

template<typename T >
RWQEMTPerfTestRunner< T >::RWQEMTPerfTestRunner ( test,
std::function< void(const RWQEPerfTestResult &)>  resultHandler,
std::function< void(std::string &)>  exceptionHandler,
std::function< bool(uint64_t, uint64_t)>  stopTest,
std::function< void()>  barrier,
const RWQEPerfTestDef def 
)
inline

Constructs an RWQEMTPerfTestRunner.

Parameters
testThe test object that will be evaluated.
resultHandlerThe callable object that will be invoked for each completed iteration of the test.
exceptionHandlerThe callable object that will be invoked to capture any exception message information.
stopTestA callable object that will be invoked to determine if the test runner should halt execution when one thread has executed all the iterations it can.
barrierThe callable object that will be invoked in order to synchronize multiple RWQEMTPerfTestRunner objects.
defThe object that contains the parameters for this test instance.
template<typename T >
RWQEMTPerfTestRunner< T >::RWQEMTPerfTestRunner ( const RWQEMTPerfTestRunner< T > &  rhs)
inline

Copy constructor.

Parameters
rhsContents of rhs are copied into this object.
Note
The thread state of rhs is not copied.

Member Function Documentation

template<typename T >
void RWQEMTPerfTestRunner< T >::_run ( void  )
inlinevirtual

Executes the test iteration loop, based on the test definition def. The test iteration loop occurs in a separate thread. The returned std::future can be used to wait for the test thread to complete.

Copyright © 2016 Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.