void vortex_ctx_install_cleanup ( VortexCtx ctx,
axlDestroyFunc  cleanup 

Allows to install a cleanup function which will be called just before the VortexCtx is finished (by a call to vortex_exit_ctx or a manual call to vortex_ctx_free).

This function is provided to allow Vortex Library extensions to install its module deallocation or termination functions.

ctxThe context to configure with the provided cleanup function.
cleanupThe cleanup function to configure. This function will receive a reference to the VortexCtx.

References vortex_mutex_lock(), and vortex_mutex_unlock().

Referenced by vortex_pull_init(), and vortex_tls_init().