void valvula_thread_set_destroy ( ValvulaThreadDestroyFunc  destroy_fn)

Allows to specify the function Valvula library will call to destroy a thread's resources.

If the user does not have reason to change the default thread cleanup mechanism this function can be ignored.

NOTE: The thread mechanism functions (valvula_thread_set_create and valvula_thread_set_destroy) must be set before any other Valvula API calls are made. Changing the thread mechanism functions while Valvula is running will most likely lead to memory corruption or program crashes.

Parameters
destroy_fnThe function to be executed to clean up a thread. Passing a NULL value restores to the default destroy handler.
See also
valvula_thread_set_create