Re: [RFC 00/17] Merge event loop implementations

Pedro Alves
2020-02-14T18:20:33Z

Hi, found this one which I never answered.

On 10/4/19 11:25 PM, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>
> Tom> Another related possible to-do item is changing the ser-event code to
> Tom> maintain just a single self-pipe. It seems to me that there's never a
> Tom> reason to need more than one.
>
> Pedro> Can you clarify/expand? Are you suggesting to use one single pipe,
> Pedro> and then if select/poll wakes up, go through a list of registered
> Pedro> ser-events to know which one triggered? Or something else?
>
> It seems to me that any use of a serial event could just be replaced
> with run_on_main_thread, from the threading patches, instead.

I don't see how that could replace interruptible_select (and
quit_serial_event).

Thanks,
Pedro Alves