axl_bool vortex_thread_destroy ( VortexThread thread_def,
axl_bool  free_data 
)

Wait for the provided thread to finish, destroy its resources and optionally release its pointer.

Parameters
thread_defA reference to the thread that must be destroyed.
free_dataBoolean that set whether the thread pointer should be released or not.
Returns
axl_true if the destroy operation was ok, otherwise axl_false is returned.