Lumiera
0.pre.03
»edit your freedom«
|
#include "vault/gear/activity.hpp"
Extension point to invoke a callback from Activity activation.
Definition at line 162 of file activity.hpp.
Public Member Functions | |
virtual | ~Hook () |
this is an interface | |
virtual Proc | activation (Activity &thisHook, Time now, void *executionCtx)=0 |
Callback on activation of the corresponding HOOK-Activity. More... | |
virtual std::string | diagnostic () const |
virtual Time | getDeadline () const =0 |
virtual Proc | notify (Activity &thisHook, Time now, void *executionCtx)=0 |
Callback when dispatching a NOTIFY-Activity to thisHook. | |
operator std::string () const | |
Callback on activation of the corresponding HOOK-Activity.
thisHook | the Activity record wired to this hook |
now | current »wall-clock-time« as used by the Scheduler |
executionCtx | opaque pointer to the actual execution context |
size_t
). Since the execution context is a concept, it is necessary to know the actual type of the concrete execution context and cast down in the implementation. This mechanism is used especially for detecting expected test invocations. Implemented in ActivityDetector::ActivityProbe.