Lumiera  0.pre.03
»edit your freedom«
lib::test::anonymous_namespace{sync-barrier-test.cpp} Namespace Reference

Classes

class  TestThread
 A test thread to perform a summation protocol including synchronisation points. More...
 

Functions

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}