.\" Automatically generated by Pandoc 3.1.12.1 .\" .TH "al_join_thread" "3" "" "Allegro reference manual" "" .SH NAME al_join_thread \- Allegro 5 API .SH SYNOPSIS .IP .EX #include \f[B]\f[R] void al_join_thread(ALLEGRO_THREAD *thread, void **ret_value) .EE .SH DESCRIPTION Wait for the thread to finish executing. This implicitly calls al_set_thread_should_stop(3) first. .PP If \f[CR]ret_value\f[R] is non\-\f[CR]NULL\f[R], the value returned by the thread function will be stored at the location pointed to by \f[CR]ret_value\f[R]. .SH SEE ALSO al_set_thread_should_stop(3), al_get_thread_should_stop(3), al_destroy_thread(3).