Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
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

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

Additional Inherited Members

- 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
 
- Public Member Functions inherited from Test
virtual ~Test ()=default
 this is an interface
 
virtual void run (Arg arg)=0
 
void seedRand ()
 draw a new random seed from a common nucleus, and re-seed the default-Gen.
 
lib::Random makeRandGen ()
 build a dedicated new RandomGen, seeded from the default-Gen
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

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

References ThreadWrapperJoin_test::detectFailure(), ThreadWrapperJoin_test::joinOnceOnly(), ThreadWrapperJoin_test::returnValue(), Test::seedRand(), and ThreadWrapperJoin_test::simpleUse().

+ Here is the call graph for this function:

◆ simpleUse()

void simpleUse ( )
inlineprivate

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

Referenced by ThreadWrapperJoin_test::run().

+ Here is the caller graph for this function:

◆ 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.

Referenced by ThreadWrapperJoin_test::detectFailure(), and ThreadWrapperJoin_test::returnValue().

+ Here is the caller graph for this function:

◆ returnValue()

void returnValue ( )
inlineprivate

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

References lib::rani(), and ThreadWrapperJoin_test::theAction().

Referenced by ThreadWrapperJoin_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ detectFailure()

void detectFailure ( )
inlineprivate

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

References ThreadWrapperJoin_test::theAction(), Type, and VERIFY_ERROR.

Referenced by ThreadWrapperJoin_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ joinOnceOnly()

void joinOnceOnly ( )
inlineprivate

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

References VERIFY_ERROR.

Referenced by ThreadWrapperJoin_test::run().

+ Here is the caller graph for this function:
+ Inheritance diagram for ThreadWrapperJoin_test:
+ Collaboration diagram for ThreadWrapperJoin_test:

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