---
name: "al_get_thread_should_stop"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_get_thread_should_stop"
---

# al\_get\_thread\_should\_stop(3)

Allegro 5 API

## NAME

al\_get\_thread\_should\_stop - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  bool al_get_thread_should_stop(ALLEGRO_THREAD *thread)
  ```

## DESCRIPTION

Check if another thread is waiting for `thread` to stop. Threads which run in a loop should check this periodically and act on it when convenient.

Returns true if another thread has called [al\_join\_thread(3)](/al_join_thread/3.md) or [al\_set\_thread\_should\_stop(3)](/al_set_thread_should_stop/3.md) on this thread.

## SEE ALSO

[al\_join\_thread(3)](/al_join_thread/3.md), [al\_set\_thread\_should\_stop(3)](/al_set_thread_should_stop/3.md).

*Note:* We don’t support forceful killing of threads.
