Lumiera  0.pre.03
»edityourfreedom«
ThreadWrapperJoin_test Class Reference

Description

Test:
use the Lumiera backend to create some new threads, additionally synchronising with these child threads and waiting for termination.
See also
backend::Thread
threads.h

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

Private Member Functions

void getError ()
 
virtual void run (Arg)
 
void simpleUse ()
 
void theAction (int secretValue)
 
void wrongUse ()
 

Private Attributes

volatile int aValue_
 state to be modified by the other thread More...
 

Additional Inherited Members

- Public Member Functions inherited from Test
virtual ~Test ()
 
virtual void run (Arg arg)=0
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

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

References ThreadWrapperJoin_test::getError(), ThreadWrapperJoin_test::simpleUse(), and ThreadWrapperJoin_test::wrongUse().

+ Here is the call graph for this function:

◆ theAction()

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

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

References LUMIERA_ERROR_SET.

Referenced by ThreadWrapperJoin_test::getError(), ThreadWrapperJoin_test::simpleUse(), and ThreadWrapperJoin_test::wrongUse().

+ Here is the caller graph for this function:

◆ simpleUse()

void simpleUse ( )
inlineprivate

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

References ThreadJoinable::join(), 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:

◆ wrongUse()

void wrongUse ( )
inlineprivate

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

References ThreadJoinable::join(), ThreadWrapperJoin_test::theAction(), and VERIFY_ERROR.

Referenced by ThreadWrapperJoin_test::run().

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

◆ getError()

void getError ( )
inlineprivate

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

References ThreadJoinable::join(), backend::test::LAUNCHER(), Result< void >::maybeThrow(), ThreadWrapperJoin_test::theAction(), and VERIFY_ERROR.

Referenced by ThreadWrapperJoin_test::run().

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

Member Data Documentation

◆ aValue_

volatile int aValue_
private

state to be modified by the other thread

Definition at line 72 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: