al_set_thread_should_stop
void al_set_thread_should_stop(ALLEGRO_THREAD *thread)
Introduced in 5.0.0
Set the flag to indicate thread
should stop. Returns immediately.
See also: al_join_thread, al_get_thread_should_stop.
Examples: ex_threads2
Most helpful discussions: