Function gc_plugin_shutdown
pub unsafe extern "C" fn gc_plugin_shutdown(instance: *mut c_void)Expand description
@brief Safely shuts down the plugin instance.
This function is invoked by the core to terminate the plugin instance. The following points should be taken into consideration regarding concurrency:
- After this function completes, no other functions exported by the plugin will be called for this instance.
- During the execution of
gc_plugin_shutdown, other plugin functions may still be running concurrently if their calls were initiated beforegc_plugin_shutdownwas invoked. It is therefore the plugin’s responsibility to handle any potential race conditions while releasing resources. - All resources allocated by the plugin should be released by the time this function returns.
@param instance A pointer to the plugin instance being shut down.