Lumiera
0.pre.03
»edit your freedom«
|
Definition at line 75 of file advice-multiplicity-test.cpp.
Private Member Functions | |
void | check_highLoadSimpleMatch () |
void | check_multipleMatch () |
void | check_unlockedDispatch () |
virtual void | run (Arg) |
|
inlineprivate |
Intentionally, there should be just a single match per pair, but the timings of provision and pickup are chosen randomly
Definition at line 92 of file advice-multiplicity-test.cpp.
|
inlineprivate |
The receiving clients (advised entities) are polling irregularly, but finally should each pick up the correct value. To check this, advice values are generated with a specific pattern, which can be check summed
Definition at line 106 of file advice-multiplicity-test.cpp.
|
inlineprivate |
Obviously this means we can't be sure anymore the client will see the newly dispatched piece of advice. But the main focus of this test is to ensure the advice system itself is working properly even without complete locking. To verify the results, each thread performs a kind of "flush" (actually creates a memory barrier) before picking up the final value
Definition at line 122 of file advice-multiplicity-test.cpp.