[Xcb] [PATCH v2 libxcb] Prevent reply waiters from being blocked.

Rami Ylimäki rami.ylimaki at vincit.fi
Fri Oct 8 10:47:51 PDT 2010


2010/10/8 Rami Ylimäki <rami.ylimaki at vincit.fi>

>  On 10/08/2010 03:40 PM, Josh Triplett wrote:
>
>> For another, how does this work with multi-reply requests like
>> ListFontsWithInfo?
>>
>
> Also I can't see this patch introducing a problem with multi-reply requests
> that wouldn't already exist. Can you show me an example sequence that would
> cause problems with the patch but not without?


I thought about this a little bit more after some rest and the answer is
quite obvious. It's not allowed to let multi-reply waiters to wake up and
poll for replies if the reply hasn't really arrived, because X server may
still be sending those replies but Xcb buffers happen to be empty. There is
no way to determine if all replies have been received or not without
examining the reply contents.

Thanks for pointing these cases out.

-- Rami
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20101008/dc68ffb2/attachment.html>


More information about the Xcb mailing list