[Xcb] how should Xlib handle threads?

Jamey Sharp jamey at minilop.net
Sat Dec 24 11:17:49 PST 2005


On Sat, Dec 24, 2005 at 04:00:20AM -0800, Jamey Sharp wrote:
> First, we could try having Xlib maintain a virtual sequence number
> stream and a map from virtual sequence numbers to the real ones that XCB
> wound up assigning to the same requests. This entirely solves the
> problem (I think), doesn't require any changes to XCB, reduces
> contention between threads, and addresses XCB's occasional need to
> spontaneously generate requests without Xlib's permission. On the other
> hand it seems potentially hard to implement correctly, and the concept
> of a purely fictional sequence number stream is just weird.

Ooh, this strategy actually eliminates the need for *both* of the
Xlib-special API functions. I think I'm going to have to prototype it
and see how it works out.

--Jamey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20051224/859701d6/attachment.pgp


More information about the Xcb mailing list