emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Asynchronous DNS


From: Eli Zaretskii
Subject: Re: Asynchronous DNS
Date: Mon, 25 Jan 2016 19:26:09 +0200

> Date: Tue, 26 Jan 2016 01:15:56 +0800
> From: Elias Mårtenson <address@hidden>
> Cc: emacs-devel <address@hidden>, Lars Magne Ingebrigtsen <address@hidden>
> > The challenge with this scheme is to come up with the way to add an
> > event to the Emacs event queue from another thread. Once the event is
> > in the queue, all the rest is simple. However, the event queue is not
> > currently designed to accept events from other threads.
> >
> > Maybe you should take a look at the concurrency branch.
> 
> I did something similar in a different project, and I solved that by creating 
> a
> pipe so that the main thread's event handler (which was blocking on a select()
> call) could be notified that the worker thread wanted to send a message to the
> main loop. 

I sincerely hope we will be able to come up with something more
elegant.

> Isn't Emacs doing something similar

Doing where?  In the concurrency branch?  No, of course not.  Frankly,
I'm not even sure that branch is up to the job, it's been a long time
since I looked at the code (and the name "concurrency" could deceive
in this case).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]