[PATCH 2/4] X event queue mutex
Tiago Vignatti
vignatti at c3sl.ufpr.br
Thu Oct 2 15:10:41 PDT 2008
Simon Thum escreveu:
> I believe tiagos words are a bit misleading: The mutex makes it possible
> to block event enqueuing, which is needed to guarantee order of events
> enqueued on the main thread. If I got it right, the intent is to
> 'emulate' OsBlockSignals(), though I'm missing that bit.
Good point, Simon. I forgot about this discussion which we had in XDS.
Given that there's only one thread to take care about all the input
devices this would not be a problem with *devices*. Events will be
serialized is this case. But the problems eventually can happen if the
others guys that enqueue events (nested servers, DGA, maybe also XTest)
try to do it at the same time with the devices. A mutex is needed in
this situation.
But yeah, I really have to carefully trace these weird paths to
guarantee nothing bad occurs.
Thank you,
--
Tiago Vignatti
C3SL - Centro de Computação Científica e Software Livre
www.c3sl.ufpr.br
More information about the xorg
mailing list