NAME
A namespace of omni::application
omni::application::startup_handler
A namespace of omni::application
#include <omni/application.hpp>
startup_handler
void omni::application::startup_handler::attach(const omni::callback& start_func)
void omni::application::startup_handler::detach(const omni::callback& start_func)
SYNOPSIS
The
top
The
startup_handler namespace facilitates functions that allow invoking a delegate before the main application thread blocks.
top
DESCRIPTION
If an
top
If an
omni::application::run function is called and a startup handler is attached, the handlers are invoked in the order they are attached during the omni::application::run invocation. The startup handlers are called immediately before any user supplied thread functions and before the underlying base application loop runs. The run context is blocked and will not continue until the startup handlers have been invoked and return.
top
ERRORS
If an exception occurs on an attached delegate, it will be handled according to
top
If an exception occurs on an attached delegate, it will be handled according to
omni::sync::user_thread_exception and omni::sync::unhandled_thread_exception.
top
CONSIDERATIONS
This function will only have an effect if you have explicitly called one of the
top
This function will only have an effect if you have explicitly called one of the
omni::application::run functions to block the main thread until program completion.
top