void myqtt_thread_set_destroy ( MyQttThreadDestroyFunc  destroy_fn)

Allows to specify the function MyQtt 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 (myqtt_thread_set_create and myqtt_thread_set_destroy) must be set before any other MyQtt API calls are made. Changing the thread mechanism functions while MyQtt is running will most likely lead to memory corruption or program crashes.

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