Re: [PATCH] server: add wl_signal_emit_safe

2018-07-13 Thread Markus Ongyerth
On 2018/July/13 05:40, Simon Ser wrote: > This new function allows listeners to remove themselves or any > other listener when called. This version only works if listeners > are properly cleaned up when the wl_signal is free'd. This is about free()ing the wl_listener in the actual handler, not the

[PATCH] server: add wl_signal_emit_safe

2018-07-13 Thread Simon Ser
This new function allows listeners to remove themselves or any other listener when called. This version only works if listeners are properly cleaned up when the wl_signal is free'd. Signed-off-by: Simon Ser --- This is a [1] follow-up. Since we noticed the previous version is not a drop-in replac