NAME
A function of omni::application
omni::application::exit
A function of omni::application
#include <omni/application.hpp>
void omni::application::exit(int exit_status)
inline void omni::application::exit()
DESCRIPTION
If
top
If
omni::application::run has been called and is blocking, exit will signal the underlying run function to continue thus calling any shutdown handlers attached via omni::application::shutdown_handler::attach, after which the delegates registered with the omni::application::exit_handler will be invoked finally calling std::exit after all handlers have been invoked, passing in the exit_status value.
top
PARAMETERS top
exit_status - The exit status value to pass to the underlying exit function system call.