[PATCH] event-loop: Use two-step destruction of event loop sources.

Andreas Ericsson ae at op5.se
Wed Mar 21 02:16:07 PDT 2012

On 03/21/2012 09:35 AM, Jonas Ådahl wrote:
> Instead of directly freeing an event source upon removal put it in a
> queue later handled by the event loop; either after a dispatch or upon
> event loop destruction.
> This is necessary to avoid already queued up event sources to be freed
> during some other dispatch callback, causing segmentation faults when
> the event loop later tries to handle an event from the freed source.
> Signed-off-by: Jonas Ådahl<jadahl at gmail.com>
> ---

Very nice :)

Acked-by: Andreas Ericsson <ae at op5.se>

Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

More information about the wayland-devel mailing list