Allegro 5 api
#include <allegro5/allegro.h> void al_set_thread_should_stop(ALLEGRO_THREAD *thread)
Set the flag to indicate thread should stop. Returns immediately.
al_join_thread(3alleg5), al_get_thread_should_stop(3alleg5).