Lumiera  0.pre.03
»edit your freedom«
Checker< POLICY > Class Template Reference

Description

template<class POLICY>
class lib::test::anonymous_namespace{sync-locking-test.cpp}::Checker< POLICY >

Helper to verify a contended chain calculation.

Definition at line 54 of file sync-locking-test.cpp.

Public Member Functions

void addValues (uint a, uint b)
 
uint createVal ()
 
bool verify ()
 

Private Types

using Lock = typename Sync< POLICY >::Lock
 

Private Attributes

size_t control_sum_ {0}
 
size_t hot_sum_ {0}
 

Additional Inherited Members

- Static Public Member Functions inherited from Sync< CONF >
static MonitorgetMonitor (Sync const *forThis)
 

Member Function Documentation

◆ addValues()

void addValues ( uint  a,
uint  b 
)
inline
Parameters
bto be called concurrently

Definition at line 80 of file sync-locking-test.cpp.

+ Inheritance diagram for Checker< POLICY >:
+ Collaboration diagram for Checker< POLICY >:

The documentation for this class was generated from the following file: