Skip to content
Commit 962aefda authored by Simon Ser's avatar Simon Ser
Browse files

server: introduce wl_signal_emit_mutable

wl_signal_emit doesn't handle well situations where a listener removes
another listener. This can happen in practice: wlroots and Weston [1]
both have private helpers to workaround this defect.

wl_signal_emit can't be fixed without breaking the API. Instead,
introduce a new function. Callers need to make sure to always remove
listeners when they are free'd.

[1]: https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/457



Signed-off-by: default avatarSimon Ser <contact@emersion.fr>
Signed-off-by: default avatarAlexandros Frantzis <alexandros.frantzis@collabora.com>
parent 868eb99e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment