al_destroy_thread

void al_destroy_thread(ALLEGRO_THREAD *thread)
Introduced in 5.0.0

Free the resources used by a thread. Implicitly performs al_join_thread on the thread if it hasn't been done already.

Does nothing if thread is NULL.

See also: al_join_thread.

Examples: ex_native_filechooser, ex_threads, ex_threads2


Most helpful discussions: