The first only increments mieqEventQueue.tail when the data is in the queue (since mieqProcessInputEvents assumes the data to be valid if tail is incremented).
The second moves a hunk in mieqProcessInputEvents after we increment mieqEventQueue.head, so we don't need to hold a mutex for an unnecessarily.
If nobody pipes up in the next few days, I'll be pushing them into master.
Thanks, Jeremy
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg