Lumiera  0.pre.03
»edit your freedom«
sync-barrier-test.cpp File Reference

Go to the source code of this file.

Description

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.
 

Function Documentation

◆ LAUNCHER()

lib::test::LAUNCHER ( SyncBarrier_test  ,
"function common"   
)

Register this test class...