[Xcb] [RFC PATCH] New XCB socket handoff mechanism for Xlib/XCB and other libraries

Jamey Sharp jamey at minilop.net
Sun Mar 16 12:15:36 PDT 2008


On Sat, Mar 15, 2008 at 09:36:37PM -0700, Jamey Sharp wrote:
> The attached patch to Xlib/XCB converts it to use the new handoff
> mechanism. Previously, Xlib/XCB used XCB's Xlib lock to prevent XCB from
> sending requests between calls to Xlib's LockDisplay and UnlockDisplay
> macros. Xlib/XCB then sent all of its requests using XCB's
> xcb_send_request, and had to flush its requests when unlocking the
> display.

Note that if you apply this patch to something other than current Git
master of libX11, you will also need the sync fix from Git commit
64325f38bab082a8e0e9ce779a8e582de5c8588e.  You can find the patch at
<http://gitweb.freedesktop.org/?p=xorg/lib/libX11.git;a=commitdiff_plain;h=64325f38bab082a8e0e9ce779a8e582de5c8588e>.

- Josh Triplett and Jamey Sharp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20080316/4fc83de4/attachment.pgp>


More information about the xorg mailing list