NAME
A namespace of omni::application
omni::application::terminate_handler
A namespace of omni::application
#include <omni/application.hpp>
terminate_handler
void omni::application::terminate_handler::attach(const omni::callback& terminate_func)
void omni::application::terminate_handler::detach(const omni::callback& terminate_func)
SYNOPSIS
The
top
The
terminate_handler namespace facilitates functions that allow invoking a function when std::terminate has been called.
top
DESCRIPTION
If an
top
If an
omni::application::run function is executed and std::terminate is invoked, any terminate handler delegates will be called in the order they were attached. The handler delegates are called before any exit handlers attached via omni::application::exit_handler are invoked.
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