Re: XForms: personality clash: XForms and pthreads

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 15 Jan 98 05:50:34 PST

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> From Michael Scott <scott-ma@ee.uwa.edu.au> :
>
> >From the mailing list archives:
>
> "I am trying to bind XForms with a new kind of interpreter, related to
> Perl, Python, Tcl etc. I am working on a Linux/i386 with version 0.86
> of XForms.
>
> [...]
>
> I have the same problem when linking the linux pthread library.
> I'm using xforms v0.88 and pthreads v0.7.
>
> Does anyone have a solution?

X itself is not terribly thread friendly, though X11R6 purports to
support threads in some limited fashion.

There is some discussion of the thread compatibility in the O'Reilly
X11R6 supplement manual. You might take a look there. Offhand, not
having studied this subject in a lot of detail, I don't know how well
this will work WRT XForms.

The best counsel I can give is to develop your threaded application in
such a way that only one thread attempts to communicate with X or
XForms and the other threads make appropriate requests to the X thread
for interaction.

spl

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bloch.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/