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

Julien Danjou julien at danjou.info
Tue Feb 2 13:05:46 PST 2010


At 1265143814 time_t, Peter Harris wrote:
> My current beef with the patch is that it requires horrible typecast
> gymnastics to convert a specific cookie type to an xcb_void_cookie_t.
> I'm not sure if that can be fixed without either breaking existing apps
> or adding a gazillion request-specific discard functions.

Just ask for the sequence rather than the cookie.
This is how it is done in various place like xcb_wait_for_reply().

-- 
Julien Danjou
// ᐰ <julien at danjou.info>   http://julien.danjou.info
// Don't give up.
-------------- 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/20100202/1da1f73c/attachment.pgp 


More information about the Xcb mailing list