addThreadGroup overloads
Declared in <bslmt_throughputbenchmark.h>
Create a set of threads that repeatedly execute a test function.
int
addThreadGroup(
RunFunction const& runFunction,
int numThreads,
bsls::Types::Int64 busyWorkAmount);
» more...
Create a set of threads that repeatedly execute a test function with per-thread initialize and cleanup hooks.
int
addThreadGroup(
RunFunction const& runFunction,
int numThreads,
bsls::Types::Int64 busyWorkAmount,
InitializeThreadFunction const& initializeFunctor,
CleanupThreadFunction const& cleanupFunctor);
» more...
index of the created thread group
| Name | Description |
|---|---|
| runFunction | function each thread repeatedly executes |
| numThreads | number of threads in the group |
| busyWorkAmount | work amount passed to busyWork between calls |
| initializeFunctor | functor run at the start of each thread |
| cleanupFunctor | functor run at the end of each thread |