Giulio Camuffo authored
wl_list_for_each_safe, which is used by wl_signal_emit is not really safe. If a signal has two listeners, and the first one removes and re-inits the second one, it would enter an infinite loop, which was hit in weston on resource destruction, which emits a signal. This commit adds a new version of wl_signal, called wl_priv_signal, which is private in wayland-server.c and which does not have this problem. The old wl_signal cannot be improved without breaking backwards compatibility. Signed-off-by: Giulio Camuffo <email@example.com> Reviewed-by: Pekka Paalanen <firstname.lastname@example.org>5e6eb032
To find the state of this project's repository at the time of any of these versions, check out the tags.