input thread [was Re: [PATCH v2] input: constify valuators passed in by input drivers.]

Vignatti Tiago (Nokia-MS/Helsinki) tiago.vignatti at nokia.com
Thu Aug 12 06:38:53 PDT 2010


On Wed, Aug 11, 2010 at 08:50:32PM +0200, ext Keith Packard wrote:
> On Wed, 11 Aug 2010 14:04:08 -0400, Adam Jackson <ajax at nwnk.net> wrote:
> 
> > Threads will help when we're in D state, but only to the extent that
> > they're not blocked by the main server.  If the server is holding a read
> > lock for the input queue, we're still going to lose if we try to write
> > to it from another thread.
> 
> We can construct a lockless input queue; we've got a single writer and
> a single reader.

Each client can be thought as a reader... unless we remove all this bunch of
global structures shared among them. So several readers, right?

             Tiago


More information about the xorg-devel mailing list