Lumiera  0.pre.03
»edit your freedom«
SyncWaiting_test Class Reference

Description

Test:
concurrent waiting and notification, implemented via object monitor.

This test covers the second part of the monitor pattern, which builds upon the locking part, additionally using an embedded condition. Two interwoven threads are created, both blocked until a start value is given. Once awakened, each thread should add the start value to a common sum field.

See also
SyncLocking_test
sync.hpp

Definition at line 81 of file sync-waiting-test.cpp.

Private Member Functions

virtual void run (Arg)
 

Additional Inherited Members

- Public Member Functions inherited from Test
virtual ~Test ()=default
 this is an interface
 
lib::Random makeRandGen ()
 build a dedicated new RandomGen, seeded from the default-Gen
 
virtual void run (Arg arg)=0
 
void seedRand ()
 draw a new random seed from a common nucleus, and re-seed the default-Gen.
 
- Static Public Member Functions inherited from Test
static string firstTok (Arg)
 conveniently pick the first token from the argument line
 
static uint firstVal (Arg, uint=1)
 conveniently use some number given as argument, with optional default
 
+ Inheritance diagram for SyncWaiting_test:
+ Collaboration diagram for SyncWaiting_test:

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