Lumiera
0.pre.03
»edit your freedom«
|
Research setup to investigate concurrent access to a random generator.
From each test thread, the shared generator instance is invoked a huge number times (defined by NUM_INVOKES), thereby computing the mean value and checking for defect numbers outside the generator's definition range. This probe cycle is repeated several times (defined by NUM_SAMPLES) and the results are collected and evaluated afterwards to detect signs of a skewed distribution.
GEN | a C++ compliant generator type |
threads | number of threads to run in parallel |
Definition at line 114 of file random-concurrent-test.cpp.
Public Types | |
using | ResVal = typename GEN::result_type |
Public Member Functions | |
Experiment (GEN &&fun) | |
void | perform () |
run the experiment series | |
void | recordRun (double err, uint fails) |
Additional Inherited Members | |
Static Public Member Functions inherited from Sync< CONF > | |
static Monitor & | getMonitor (Sync const *forThis) |