[PATCH 1/2 v5] mieq: Provide better adaptability and diagnostics during mieq overflow

Keith Packard keithp at keithp.com
Sun Oct 16 22:30:54 PDT 2011

On Sun, 16 Oct 2011 22:14:31 -0700, Jeremy Huddleston <jeremyhu at apple.com> wrote:

> +    if ((miEventQueue.tail - miEventQueue.head) % miEventQueue.nevents >= (miEventQueue.nevents >> 1) &&

I missed this use of '%'. And, this seems to be growing the queue
whenever it's more than half full? Is that too pessimistic?

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

More information about the xorg-devel mailing list