[Xcb] How come there is no xcb_free_id()?

Christ-Jan Wijtmans cj.wijtmans at gmail.com
Wed Mar 20 09:11:26 PDT 2013


why spend extra cycles to detect an "unused one"?


On Wed, Mar 20, 2013 at 9:22 AM, Bart Massey <bart at cs.pdx.edu> wrote:
> I assume you mean xcb_free_xid()? It's not needed. xcb_generate_xid()
> will always hand you a fresh one; if it runs out, it will ask the
> server (via the xc_misc extension) for some unused ones to hand out in
> the future. In general, folks just plow through xids fairly
> indiscriminately, since they're cheap. --Bart
>
> On Tue, Mar 19, 2013 at 5:41 PM, medusade <medusade at cox.net> wrote:
>> Xcb, How come there is no xcb_free_id()?
>> medusade
>>
>>
>> _______________________________________________
>> Xcb mailing list
>> Xcb at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/xcb
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb


More information about the Xcb mailing list