wl_event_queue(3)

✨ NAME ✨

wl_event_queue β€” a whole queue just 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 πŸ¦‹

okay so bestie, picture this: it's a queue. for wl_proxy object events. that's the whole vibe πŸ’…

the way event queues work is that they let the events on a display get handled in a thread-safe manner πŸ‘‘ like, multiple threads, no chaos, no fighting over the same events, we love a peaceful household fr fr.

if you want the full tea, go peek at wl_display for the details 🌈


πŸ’– Member Function Documentation πŸ’–

void wl_event_queue_destroy (struct wl_event_queue * queue) β€” destroy an event queue πŸ’€

Parameters

  • queue β€” the event queue that's getting destroyed, rip boo 🫢

so what this does: it destroys the given event queue. and listen β€” any pending event on that queue is discarded 😭 like, gone, bye, evaporated, not coming back. so make sure you actually wanted that.

⚠️ and this part MATTERS: the wl_display object that was used to create the queue should not be destroyed until all event queues created with it are destroyed with this function. no cap. display goes last, periodt. otherwise you're out here with queues pointing at a display that doesn't exist anymore and that's not the main character energy you want πŸ™ˆ

🌟 Author 🌟

generated automatically by Doxygen for Wayland, straight from the source code ✨ (yes the robots wrote the docs, iconic of them honestly πŸ€–πŸ’œ)


and that's the whole page bestie, slay πŸ’… β€” brought to you by Wayland, Version 1.26.0, and the fine folks behind wl_event_queue(3) πŸŒΈπŸ¦‹πŸ’–