Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
ThreadWrapperAutonomous_test Class Reference

Description

Test:
a variation of the Thread wrapper to launch a detached thread, with automatic memory management for the thread-object..
See also
thread.hpp
ThreadWrapper_test

Definition at line 42 of file thread-wrapper-autonomous-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void demonstrateSimpleUsage ()
 
void verifyMemoryManagement ()
 

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 46 of file thread-wrapper-autonomous-test.cpp.

References ThreadWrapperAutonomous_test::demonstrateSimpleUsage(), and ThreadWrapperAutonomous_test::verifyMemoryManagement().

+ Here is the call graph for this function:

◆ demonstrateSimpleUsage()

void demonstrateSimpleUsage ( )
inlineprivate
Test:
demonstrate simply launching a λ-function into background

Definition at line 55 of file thread-wrapper-autonomous-test.cpp.

References lib::launchDetached().

Referenced by ThreadWrapperAutonomous_test::run().

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

◆ verifyMemoryManagement()

void verifyMemoryManagement ( )
inlineprivate
Test:
verify the detached thread autonomously manages its memory.

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

References Dummy::checksum(), extra, and Dummy::setVal().

Referenced by ThreadWrapperAutonomous_test::run().

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

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