[PATCH libX11] Always initialise thread support

Alan Coopersmith alan.coopersmith at oracle.com
Fri Jul 12 17:09:00 PDT 2013


On 07/12/13 03:16 PM, Daniel Stone wrote:
> The immediate provocation was the Mali GLES/EGL implementation, which
> uses multiple threads itself, and thus relies on XInitThreads having
> been called somewhere; so if you ever use that specific
> implementation, every app has to call XInitThreads first to ensure it
> doesn't die horribly.

I don't know that it's any saner, but the patches we carried in the Solaris
libX11 for years to allow libraries to be thread safe even when calling
apps are not are posted, along with description, at:

http://people.freedesktop.org/~alanc/thread-fixes/

Unfortunately, I never got around to trying to figure out if these
would be good to push upstream or not.

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list