omni::application::terminate_handler::detach

SYNOPSIS

Detach a delegate function from the terminate handler event.

top

DESCRIPTION

Detaches a delegate function from the terminate handler event. Detaching a delegate that has not been initially attached has no effect.

Since the terminate handler deals specifically with handling the invocation of std::terminate, a call to attach can be made before or after the run context has been invoked and the handlers will be called accordingly.

top

PARAMETERS

terminate_func - The omni::callback delegate function to attach.

top

CONSIDERATIONS

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