al_join_thread
void al_join_thread(ALLEGRO_THREAD *thread, void **ret_value)
Introduced in 5.0.0
Wait for the thread to finish executing. This implicitly calls al_set_thread_should_stop first.
If ret_value
is non-NULL
, the value returned by the thread function will be stored at the location pointed to by ret_value
.
See also: al_set_thread_should_stop, al_get_thread_should_stop, al_destroy_thread.
Examples: ex_threads, ex_threads2
Most helpful discussions:
- Need Good tutorials on Allegro threads.
- ALLEGRO_THREAD
- Running a function on a triggered event (Thread?)
- Just bored... ;)
- Random deadlocks playing WAV sounds (Windows, MSVC)
- Question on return value of al_create_thread
- destroy a newly loaded audio stream will cause program freeze.
- (A5) random crash on al_detach_voice()
- al_draw_bitmap fails to run on threads other than the parent thread
- Threading Problems
Other recent discussions: