[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: advice needed for multi-threading patch
From: |
Giuseppe Scrivano |
Subject: |
Re: advice needed for multi-threading patch |
Date: |
Fri, 25 Sep 2009 00:23:04 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Tom Tromey <address@hidden> writes:
> I think we need to yield when a thread is waiting for I/O. And, we
> probably need a way to associate a process filter with a thread, so that
> whatever input Gnus gets is processed in the right thread.
I did some changes today. Now a thread exits from the global lock
before calls `select' and it enters again immediately after `select'
returns, leaving other threads free to do their job.
Blocking operations affect only the caller thread. As direct effect,
now this is enough:
(run-in-thread '(gnus))
and gnus will be loaded in the background, without explicitly call
`yield'.
Cheers,
Giuseppe
- Re: advice needed for multi-threading patch, (continued)
- Re: advice needed for multi-threading patch, Tom Tromey, 2009/09/28
- Re: advice needed for multi-threading patch, Ken Raeburn, 2009/09/29
- Re: advice needed for multi-threading patch, Tom Tromey, 2009/09/28
- Re: advice needed for multi-threading patch, Giuseppe Scrivano, 2009/09/23
- Re: advice needed for multi-threading patch, Stefan Monnier, 2009/09/24
- Re: advice needed for multi-threading patch, Giuseppe Scrivano, 2009/09/24
- Re: advice needed for multi-threading patch, Tom Tromey, 2009/09/24
- Re: advice needed for multi-threading patch,
Giuseppe Scrivano <=
- Re: advice needed for multi-threading patch, Ken Raeburn, 2009/09/24
- Re: advice needed for multi-threading patch, Stefan Monnier, 2009/09/25
- Re: advice needed for multi-threading patch, Ted Zlatanov, 2009/09/28
- Re: advice needed for multi-threading patch, Lynbech Christian, 2009/09/28