addThreadGroup overloads
Synopses
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);
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);
Return Value
index of the created thread group
Parameters
Name |
Description |
runFunction |
function each thread repeatedly executes |
numThreads |
number of threads in the group |
busyWorkAmount |
work amount passed to |
initializeFunctor |
functor run at the start of each thread |
cleanupFunctor |
functor run at the end of each thread |
Created with MrDocs