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

Description

Test:
verify the special flavour of the thread-wrapper, allowing to block waiting on thread end and then pass result or error state.
See also
thread.hpp
Result_test
ThreadWrapper_test
SyncLocking_test

Definition at line 53 of file thread-wrapper-join-test.cpp.

Private Member Functions

void detectFailure ()
 
void joinOnceOnly ()
 
void returnValue ()
 
virtual void run (Arg)
 
void simpleUse ()
 
int theAction (int secretValue)
 

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
 

Member Function Documentation

◆ theAction()

int theAction ( int  secretValue)
inlineprivate
Parameters
secretValueto be run in a new thread...

Definition at line 81 of file thread-wrapper-join-test.cpp.

+ Inheritance diagram for ThreadWrapperJoin_test:
+ Collaboration diagram for ThreadWrapperJoin_test:

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