Xlib Thread debugging

Deron Johnson Deron.Johnson at Sun.COM
Mon Feb 13 14:17:25 PST 2006


Contrary to what the XInitThreads documentation implies, Xlib is NOT
thread safe. My recommendation is to use a separate X Display per thread.

Rafael Savignon wrote On 02/09/06 18:43,:
> Hi all,
> 
> which flag must be set in imake to compile xlib with Thread Debugging
> enabled ? , im working with native awt and got some pthread_mutexlock
> erros causing SIGSEGV. when Calling XinitThreads() and after
> XLockDisplay() XUnlockDisplay() functions, i saw some XTHREADS_WARN and
> XTHREADS_DEBUG in xc/lib/X11/locking.c, but how to enable it using imake?
> 
> thanks in advance for the attention and support.
> 
> Rafael.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg




More information about the xorg mailing list