omni::application::exit

SYNOPSIS

Exits the main application with a specified return value.

top

DESCRIPTION

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.

RETURN VALUES

No return value.

top

ERRORS

No errors specific to this context.

top

CONSIDERATIONS

No extra considerations.

top

PLATFORM SPECIFIC

Nothing platform specific to account for.

top

NOTES

No additional notes.

top

EXAMPLE
Currently no examples.
Visit the examples page for more.

top