[Top][All Lists]

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

Re: Async DNS lookups

From: Lars Magne Ingebrigtsen
Subject: Re: Async DNS lookups
Date: Wed, 03 Nov 2010 20:46:40 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> You can't "halt" the main thread, you can only wait for it to take
> a break.  E.g. you could stuff your callback into pending_funcalls.
> Of course, pending_funcalls would then need to be protected by a mutex.

Which mutex would that be?

I've grepped a bit through the code, and the usage pattern seems to be a

      = Fcons (list3 (Qrun_hook_with_args,
                      Qdelete_terminal_functions, terminal),

I don't see any obvious mutexes...

I've also grepped around for pthread_* stuff, and in particular
pthread_create, and I can't really find anything.  Do you have an
example of a code snippet that uses a thread inside Emacs? 

(domestic pets only, the antidote for overdose, milk.)
  address@hidden * Lars Magne Ingebrigtsen

reply via email to

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