1al_get_thread_should_stop(3) al_get_thread_should_stop(3)
2
3
4
6 al_get_thread_should_stop - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 bool al_get_thread_should_stop(ALLEGRO_THREAD *thread)
12
14 Check if another thread is waiting for thread to stop. Threads which
15 run in a loop should check this periodically and act on it when conveā
16 nient.
17
18 Returns true if another thread has called al_join_thread(3) or
19 al_set_thread_should_stop(3) on this thread.
20
22 al_join_thread(3), al_set_thread_should_stop(3).
23
24 Note: We don't support forceful killing of threads.
25
26
27
28Allegro reference manual al_get_thread_should_stop(3)