![]() |
Lumiera 0.pre.04
»edit your freedom«
|
A test thread to perform a summation protocol including synchronisation points.
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 | |
|
inline |
Definition at line 61 of file sync-barrier-test.cpp.
References lib::test::anonymous_namespace{sync-barrier-test.cpp}::afterThread, lib::test::anonymous_namespace{sync-barrier-test.cpp}::finish, lib::test::anonymous_namespace{sync-barrier-test.cpp}::interThread, lib::seedFromDefaultGen(), lib::test::anonymous_namespace{sync-barrier-test.cpp}::stage1, lib::test::anonymous_namespace{sync-barrier-test.cpp}::stage2, and SyncBarrier::sync().
Here is the call graph for this function:| uint localSum |
Definition at line 80 of file sync-barrier-test.cpp.
Referenced by lib::test::anonymous_namespace{sync-barrier-test.cpp}::sumLocals().
Inheritance diagram for TestThread:
Collaboration diagram for TestThread: