Lumiera  0.pre.03
»edit your freedom«
PolicyLifecycleHook< BAS, TAR > Struct Template Reference

#include "lib/thread.hpp"

Description

template<class BAS, class TAR>
struct lib::thread::PolicyLifecycleHook< BAS, TAR >

Thread Lifecycle Policy Extension: invoke user-provided callbacks from within thread lifecycle.

See also
ThreadLifecycle::invokeThreadFunction for invocation...
ThreadLifecycle::Launch for configuration of these hooks.

Definition at line 285 of file thread.hpp.

Public Types

using BasePol = PolicyLaunchOnly< BAS >
 
using Hook = function< void(Self &)>
 
using Self = PolicyLifecycleHook
 

Public Member Functions

void handle_after_thread ()
 
void handle_begin_thread ()
 
void handle_loose_thread ()
 
- Public Member Functions inherited from PolicyLaunchOnly< BAS >
void handle_after_thread ()
 
void handle_loose_thread ()
 
void perform_thread_function (FUN &&callable, ARGS &&...args)
 

Public Attributes

Hook hook_afterThread {}
 
Hook hook_beginThread {}
 
Hook hook_looseThread {}
 
+ Inheritance diagram for PolicyLifecycleHook< BAS, TAR >:
+ Collaboration diagram for PolicyLifecycleHook< BAS, TAR >:

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