[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
la:
pending_funcalls
= Fcons (list3 (Qrun_hook_with_args,
Qdelete_terminal_functions, terminal),
pending_funcalls);
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
- Re: Async DNS lookups, Tom Tromey, 2010/11/01
- Re: Async DNS lookups, Ken Raeburn, 2010/11/02
- Re: Async DNS lookups, Lars Magne Ingebrigtsen, 2010/11/02
- Re: Async DNS lookups, Stefan Monnier, 2010/11/02
- Re: Async DNS lookups, Lars Magne Ingebrigtsen, 2010/11/02
- Re: Async DNS lookups, Tom Tromey, 2010/11/02
- Re: Async DNS lookups, Lars Magne Ingebrigtsen, 2010/11/02
- Re: Async DNS lookups, Tom Tromey, 2010/11/02
- Re: Async DNS lookups, Stefan Monnier, 2010/11/02
- Re: Async DNS lookups,
Lars Magne Ingebrigtsen <=
- Re: Async DNS lookups, Davis Herring, 2010/11/03
- Re: Async DNS lookups, Lars Magne Ingebrigtsen, 2010/11/03
- Re: Async DNS lookups, Stefan Monnier, 2010/11/03
- Re: Async DNS lookups, Andreas Schwab, 2010/11/04
- Re: Async DNS lookups, Stefan Monnier, 2010/11/04
- Re: Async DNS lookups, Ken Raeburn, 2010/11/04
- Re: Async DNS lookups, Lars Magne Ingebrigtsen, 2010/11/04
- Re: Async DNS lookups, Davis Herring, 2010/11/04
- Re: Async DNS lookups, Stefan Monnier, 2010/11/04