C++ Actor Framework 1.0.0
|
Interface to define thread hooks. More...
#include <thread_hook.hpp>
Public Member Functions | |
virtual void | init (actor_system &)=0 |
Called by the actor system once before starting any threads. | |
virtual void | thread_started (thread_owner owner)=0 |
Called whenever the actor system has started a new thread. | |
virtual void | thread_terminates ()=0 |
Called whenever a thread is about to quit. | |
Interface to define thread hooks.
|
pure virtual |
Called whenever the actor system has started a new thread.
To access a reference to the started thread use std::this_thread
.
owner | Identifies the CAF component that created this thread. |
|
pure virtual |
Called whenever a thread is about to quit.
To access a reference to the terminating thread use std::this_thread
.