Re: [PATCH v2] server: add wl_signal_emit_safe

2018-09-23 Thread Simon Ser
On Tuesday, September 18, 2018 8:43 PM, Derek Foreman wrote: > On 2018-08-08 07:00 AM, 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 removed before they are free'd. > > wl

Re: [PATCH v2] server: add wl_signal_emit_safe

2018-09-18 Thread Derek Foreman
On 2018-08-08 07:00 AM, 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 removed before they are free'd. > > wl_signal_emit tries to be safe but it fails: it works fine if a > handler

[PATCH v2] server: add wl_signal_emit_safe

2018-08-08 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 removed before they are free'd. wl_signal_emit tries to be safe but it fails: it works fine if a handler removes its own listener, but not if it removes anot