The Integration Service calls the deinitialization functions after it processes data for the Custom transformation. Use the deinitialization functions to write processes you want the Integration Service to run after it passes all rows of data to the Custom transformation.
The Designer generates the following deinitialization functions:
p_<proc_name>_partitionDeinit()
p_<proc_name>_procDeinit()
m_<module_name>_moduleDeinit()
When the Custom transformation requires one thread for each partition, you can include thread-specific operations in the initialization and deinitialization functions.