---
name: "wl_event_queue"
section: "3"
platform: "linux"
package: "wayland-docs"
version: "1.26.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/wl_event_queue"
---

# wl\_event\_queue(3)

A queue for wl\_proxy object events.

## NAME

wl\_event\_queue - A queue for **wl\_proxy** object events.

## SYNOPSIS

\#include \<wayland-client-core.h\>

### Public Member Functions

void **wl\_event\_queue\_destroy** (struct **wl\_event\_queue** \*queue)\

## Detailed Description

A queue for **wl\_proxy** object events.

Event queues allows the events on a display to be handled in a thread-safe manner. See **wl\_display** for details.

## Member Function Documentation

### void wl\_event\_queue\_destroy (struct wl\_event\_queue \* queue)

Destroy an event queue

**Parameters**

*queue* The event queue to be destroyed

Destroy the given event queue. Any pending event on that queue is discarded.

The **wl\_display** object used to create the queue should not be destroyed until all event queues created with it are destroyed with this function.

## Author

Generated automatically by Doxygen for Wayland from the source code.
