libX11 and thread-safety

Keith Packard keithp at keithp.com
Tue Jun 7 18:23:03 PDT 2005


On Tue, 2005-06-07 at 17:41 -0600, Brian Paul wrote:
> Has anyone else experienced thread safety problems with libX11?

Yes.  In one case, I ended up not calling XInitThreads and using an
external mutex provided by the Gdk library as my application would
otherwise hang constantly.

I'm probably going to replace the Gdk/Xlib support with XCB and see if I
can't get that working.

Xlib's threading support is a disaster.

-keith

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20050607/c9b8db0c/attachment.pgp>


More information about the xorg mailing list