omni::core::OnModuleStartedFn
Defined in omni/core/ModuleExports.h
-
using omni::core::OnModuleStartedFn = void()
This function will be called after the module is fully registered. It is called after omni::core::OnModuleLoadFn successfully returns.
This function will not be called again until after OnModuleUnloadFn has completed and the module has been fully unloaded and reloaded.
The owning omni::core::ITypeFactory can be safely accessed in this function.
A interface implementation’s
createFn
can be called concurrently with this function.An interface implementation’s
createFn
can be called before this function is called, as such:Move critical module initialization to omni::core::OnModuleLoadFn.
If some initialization cannot be performed in omni::core::OnModuleLoadFn (due to omni::core::ITypeFactory not being accessible), perform lazy initialization in
createFn
(in a thread-safe manner).