Lumiera
0.pre.03
»edit your freedom«
|
Go to the source code of this file.
unit test SyncBarrier_test
Definition in file sync-barrier-test.cpp.
#include "lib/test/run.hpp"
#include "lib/sync-barrier.hpp"
#include "lib/iter-explorer.hpp"
#include "lib/thread.hpp"
#include <chrono>
#include <atomic>
#include <array>
Classes | |
class | SyncBarrier_test |
class | TestThread |
A test thread to perform a summation protocol including synchronisation points. More... | |
Functions | |
LAUNCHER (SyncBarrier_test, "function common") | |
Register this test class... More... | |
template<class CON > | |
uint | sumLocals (CON const &threads) |
sum up all localSum fields from all TestThread instances in a container | |
Variables | |
SyncBarrier | afterThread {NUM_THREADS+1} |
atomic_uint | finish {0} |
SyncBarrier | interThread {NUM_THREADS } |
const uint | NUM_THREADS = 256 |
atomic_uint | stage1 {0} |
atomic_uint | stage2 {0} |
Namespaces | |
lib | |
Implementation namespace for support and library code. | |
lib::test::LAUNCHER | ( | SyncBarrier_test | , |
"function common" | |||
) |
Register this test class...