OMNI_MODULE_ON_MODULE_LAST_CHANCE_SHUTDOWN

Defined in omni/core/ModuleExports.h

OMNI_MODULE_ON_MODULE_LAST_CHANCE_SHUTDOWN(exp_, fn_)

Registers the plugin’s function who is responsible for cleaning up the plugin when the plugin unload is being skipped during a quick shutdown.

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.

Parameters