[Xcb] [PATCH 2/3] Do not block when calling reply() multiple times.

Julien Danjou julien at danjou.info
Sat Jan 23 00:08:07 PST 2010


At 1264200432 time_t, Jamey Sharp wrote:
> I don't understand what this patch is for and am about to be away from
> e-mail for two weeks. Just wanted to note, though, that there are
> occasionally X requests where you need to call xcb_wait_for_reply more
> than once to completely process them. Specifically, there's
> ListFontsWithInfo and something in the RECORD extension.

If you mean that xcb_wait_for_reply(cookie) will return 2 differents
reply in some case, then my patch is bad.

I did not know that. Reading the libxcb source show something like that actually. :)

What bothers me is that I alway assumed one request would have one
reply, but if it can has multiple, how do you know how many it has? It
is something written in the spec, or can be arbitrary?

-- 
Julien Danjou
// ᐰ <julien at danjou.info>   http://julien.danjou.info
// Life is life. Lalalalala.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20100123/bac55294/attachment.pgp 


More information about the Xcb mailing list