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

Description

A test thread to perform a summation protocol including synchronisation points.

  • build a compound sum of random numbers in the first stage
  • wait for the compound sum to build up completely
  • book in the compound sum plus a further random number

Definition at line 57 of file sync-barrier-test.cpp.

Public Attributes

uint localSum
 

Public Member Functions

 TestThread ()
 
- Public Member Functions inherited from ThreadLifecycle< thread::PolicyLaunchOnly >
 ThreadLifecycle (Launch launcher)
 Primary constructor: Launch the new thread with flexible configuration.
 
 ThreadLifecycle (string const &threadID, FUN &&threadFunction, ARGS &&...args)
 Create a new thread to execute the given operation.
 
 ThreadLifecycle (void(SUB::*memFun)(ARGS...), ARGS ...args)
 Special variant to bind a subclass member function as thread operation.
 
 operator bool () const
 Is this thread »active« and thus tied to OS resources?
 

Additional Inherited Members

- Static Public Member Functions inherited from ThreadLifecycle< thread::PolicyLaunchOnly >
static auto buildInvocation (W &wrapper, tuple< INVO... > &&invocation)
 Build the invocation tuple, using invokeThreadFunction to delegate to the user-provided functor and arguments.
 
static auto buildLauncher (INVO &&...args)
 Build a λ actually to launch the given thread operation later, after the thread-wrapper-object is fully initialised.
 
- Protected Member Functions inherited from ThreadLifecycle< thread::PolicyLaunchOnly >
 ~ThreadLifecycle ()
 
 ThreadLifecycle ()
 derived classes may create a disabled thread
 

Constructor & Destructor Documentation

◆ TestThread()

Member Data Documentation

◆ localSum

+ Inheritance diagram for TestThread:
+ Collaboration diagram for TestThread:

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