NAME
A function of omni::application::startup_handler
omni::application::startup_handler::attach
A function of omni::application::startup_handler
#include <omni/application.hpp>
void omni::application::startup_handler::attach(const omni::callback& start_func)
DESCRIPTION
Attaching an
top
Attaching an
omni::callback will register the delegate with the application startup event. The startup event is 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 (thus not calling the user thread functions or main loop) until all attached 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
NOTES
Calling this function after the run context has entered the main application loop will have no effect on the startup handler since it will have already been called.
top
Calling this function after the run context has entered the main application loop will have no effect on the startup handler since it will have already been called.
top