56 add (eventLabel,callbackFun);
Token or Atom with distinct identity.
define and register a callback for a specific lifecycle event.
static void add(Symbol eventLabel, Hook callbackFun)
alternative, static interface for registering a callback
static void trigger(Symbol eventLabel)
trigger lifecycle callbacks registered under the given label
LifecycleHook(Symbol eventLabel, Hook callbackFun)
Registry of callback functions accessible by a label (ID) provided at registration.
static LifecycleRegistry & instance()
get the (single) LifecycleRegistry instance.
void execute(Symbol label)
bool enrol(Symbol label, Hook toCall)
Lumiera error handling (C++ interface).
const char * lumiera_ON_EMERGENCY
void lumiera_LifecycleHook_add(const char *eventLabel, void callbackFun(void))
const char * lumiera_ON_GLOBAL_SHUTDOWN
void lumiera_Lifecycle_trigger(const char *eventLabel)
const char * lumiera_ON_BASIC_INIT
const char * lumiera_ON_GLOBAL_INIT
Installing and invoking of application lifecycle event callbacks.
Helper for registering lifecycle event callbacks, which are provided as a global service by lumiera::...
Lumiera public interface.
CStr ON_GLOBAL_INIT
to be triggered in main()
CStr ON_GLOBAL_SHUTDOWN
to be triggered at the end of main()
CStr ON_EMERGENCY
activated on shutdown after premature failure of a subsystem
CStr ON_BASIC_INIT
automatic static init. treated specially to run as soon as possible
LifecycleRegistry::Hook Callback
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...