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

Keith Packard keithp at keithp.com
Wed Aug 11 11:50:32 PDT 2010


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.

Otherwise, yes, using a thread would be a huge improvement.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100811/83337cef/attachment.pgp>


More information about the xorg-devel mailing list