On Wed, 2008-10-01 at 21:39 -0300, Tiago Vignatti wrote:

> A mutex is needed because the X event queue is a critical region. Though
> the X event queue is re-entrant, we cannot guarantee the simultaneous
> processing by both main and input threads.

The input queue is written so that each user modifies only one of the
two pointers (head and tail). There shouldn't be any need to have a
mutex which protects both of these values together, and doing so
prevents mouse motion while the server is processing events.

Is there something fundamentally different between threaded input and
SIGIO- or kernel-based input that I'm missing here?

-- 
[EMAIL PROTECTED]

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
xorg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xorg

Reply via email to