omni::core::OnModuleLastChanceShutdownFn

Defined in omni/core/ModuleExports.h

using omni::core::OnModuleLastChanceShutdownFn = void()

Called during ‘quick shutdown’ when the module is unable to load and will be skipped.

This function will be called during ‘quick shutdown’ instead of the regular unload path if it is specified.

This function will also be called during normal shutdown if a module is unable to unload. If a module returns false from OnModuleCanUnloadFn, this will be tried again until there are no more modules that can be unloaded. If the module still returns false from OnModuleCanUnloadFn, it is considered to be unable to unload.

This function should do any final work that’s required before exiting, such as flushing files to disk to avoid data loss or producing some final telemetry events. This function shouldn’t try to clean up resources since the ‘quick shutdown’ path terminates the process at the end. The ‘quick shutdown’ path is supposed to be quick, so avoid doing unnecessary work in this function.

It is safe to access the owning omni::core::ITypeFactory.

No other module functions will be called while this function is active.