[PATCH] xfree86: use a thread for the generation of input events

Alan Coopersmith alan.coopersmith at oracle.com
Tue Aug 24 13:10:28 PDT 2010


Vignatti Tiago (Nokia-MS/Helsinki) wrote:
> Yep, makes sense. However Peter mentioned a good point: that drivers will want
> to know if the server is assuming thread or SIGIO, mostly to do malloc tricks
> I guess. So we may want to just drop off the SIGIO code for once and enable
> always the threaded coded. 
> 
> I'm wondering how this sounds for other platforms (I'm coding in Linux) and
> other DDX. Alan, Mark Kettenis, Jon Turney and others?

SIGIO is currently disabled by default on Solaris, due to the "hilarious" FP
register bug in our signal handler context [1] ajax mentioned.

I don't think we do anything special for SIGIO or not, just try not to call
signal-unsafe functions from functions that may be in a signal handler.

Certain code paths get simpler if that's never an issue.

[1] http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6859428

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list