[140] in Pthreads mailing list archive
Successes with pthreads and X?
daemon@ATHENA.MIT.EDU (Anselm.BairdSmith)
Thu Oct 12 13:22:00 1995
Date: Thu, 12 Oct 1995 17:21:21 +0100
From: "Anselm.BairdSmith" <Anselm.Baird_Smith@inria.fr>
To: "William S. Gribble" <grib@cs.utexas.edu>
Cc: pthreads@MIT.EDU
In-Reply-To: <199510121608.LAA15730@cascade.cs.utexas.edu>
William S. Gribble writes:
> Has anyone used pthreads with X codes successfully? I have run some simple
> tests, which (sometimes) work and (most of the time) go out to lunch
> as soon as I call XtAppInitialize().
>
> I'm assuming that it's a signal handling problem, and probably not easily
> fixable. Does anyone have more concrete information?
I did, the problem is with global errno value. As I understand, you
have two choices:
a) Recompile Xlib with pgcc, and than Xt, Xmu, ICE, etc.
b) hack
a) seems to be the way to go, however...
I used b). I hacked pthreads so that it maintains the global errno
variable across context switches. If you are interested in diffs let
me know (although, the remedy and the diffs are really ugly, and will
not work in all situations).
Anselm.
Anselm.BairdSmith@inria.fr - http://www.inria.fr/koala/abaird.html