#include <rw/rwtest/perf/RWQEMTPerfTestRunner.h>
Inherits RWQEThread.
template<typename T>
class RWQEMTPerfTestRunner< T >
RWQEMTPerfTestRunner encapsulates a TestRunner that is executed in a separate thread.
Constructs an RWQEMTPerfTestRunner.
- Parameters
-
test | The test object that will be evaluated. |
resultHandler | The callable object that will be invoked for each completed iteration of the test. |
exceptionHandler | The callable object that will be invoked to capture any exception message information. |
stopTest | A 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. |
barrier | The callable object that will be invoked in order to synchronize multiple RWQEMTPerfTestRunner objects. |
def | The object that contains the parameters for this test instance. |
Copy constructor.
- Parameters
-
rhs | Contents of rhs are copied into this object. |
- Note
- The thread state of rhs is not copied.
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.