On Nov 7, 2008, at 12:23, Tiago Vignatti wrote:
For this reason, I went back to locking inside mieqProcessInputEvents with XQUARTZ.

Your mutex will lags your cursor update on screen because the input thread will block before enqueuing while the main thread pops events. On this case try to keep the lock near the critical region on mieqPIE, avoiding coarse grained locking.


Cheers,

PS: this problem of the event queue being processed by more then one user shows how multi-threaded applications suck so much to program. Moreover, if you try to use gdb to debug then you'll see the crazy world that we're living.

Yeah, that's pretty much what it's doing now in the xorg-server-1.4- apple branch... the one thing I don't like is that screensaver block... can that be moved to after we copy the event (to lessen the lock time) or is there some reason that I don't see that it's first?

--Jeremy

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to