XCB non-blocking wait for cookie?

Egil Möller egil at innovationgarage.no
Wed Apr 1 21:44:33 UTC 2020


Hi!

In XCB, is there a way to check if a reply for a reply cookie is
available, without blocking? I.e.


    xcb_get_geometry_cookie_t  cookie = xcb_get_geometry(conn, win);
    ...
    xcb_generic_event_t *event;
    while (1) {
      geom  = xcb_get_geometry_reply (conn, cookie, NULL); // This
blocks, need to use a non-blocking check
      event = xcb_poll_for_event(conn);
      if (event) {
        ...
      }

Even better if you could check a set of cookies in one go...

Thanks in advance,

Egil

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.x.org/archives/xorg-devel/attachments/20200401/84752c9f/attachment.sig>


More information about the xorg-devel mailing list