Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/thread.hpp"
Configuration builder to define the operation running within the thread, and possibly configure further details, depending on the actual Policy used.
Definition at line 455 of file thread.hpp.
Public Types | |
using | Act = function< void(ThreadLifecycle &)> |
Public Member Functions | |
template<class FUN , typename... ARGS> | |
Launch (FUN &&threadFunction, ARGS &&...args) | |
template<class TAR , typename... ARGS> | |
Launch (RES(TAR::*memFun)(ARGS...), ARGS ...args) | |
template<typename HOOK > | |
Launch && | atExit (HOOK &&hook) |
template<typename HOOK > | |
Launch && | atStart (HOOK &&hook) |
Launch && | decorateCounter () |
template<typename HOOK > | |
Launch && | onOrphan (HOOK &&hook) |
Launch && | threadID (string const &threadID) |
Public Attributes | |
string | id |
Act | launch |
Private Member Functions | |
template<typename HOOK , class FUN > | |
auto | adaptedHook (FUN Policy::*, HOOK &&hook) |
Helper to adapt a user provided hook to be usable as lifecycle hook. More... | |
template<typename HOOK , class FUN > | |
Launch && | addHook (FUN Policy::*storedHook, HOOK &&hook) |
add a config layer to store a user-provided functor into the polic baseclass(es) | |
Launch && | addLayer (Act action) |
generic helper to add another »onion layer« to this config builder | |
Additional Inherited Members | |
Protected Member Functions inherited from MoveOnly | |
MoveOnly (MoveOnly &&)=default | |
MoveOnly (MoveOnly const &)=delete | |
MoveOnly & | operator= (MoveOnly &&)=delete |
MoveOnly & | operator= (MoveOnly const &)=delete |
|
inline |
args | ctor variant to bind a member function |
Definition at line 469 of file thread.hpp.
|
inlineprivate |
Helper to adapt a user provided hook to be usable as lifecycle hook.
HOOK | type of the user provided λ or functor |
FUN | type of the function maintained in #PolicyLifecycleHook |
Definition at line 521 of file thread.hpp.