---
name: "al_pause_event_queue"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_pause_event_queue/3alleg5"
---

# al\_pause\_event\_queue(3alleg5)

Allegro 5 API

## NAME

al\_pause\_event\_queue - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_pause_event_queue(ALLEGRO_EVENT_QUEUE *queue, bool pause)
  ```

## DESCRIPTION

Pause or resume accepting new events into the event queue (to resume, pass false for `pause`). Events already in the queue are unaffected.

While a queue is paused, any events which would be entered into the queue are simply ignored. This is an alternative to unregistering then re-registering all event sources from the event queue, if you just need to prevent events piling up in the queue for a while.

## SEE ALSO

al\_is\_event\_queue\_paused(3alleg5)

## SINCE

5\.1.0
