Re: XForms: slow xforms

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 30 Sep 99 06:26:33 PDT

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

> I heard that X and the forms-library are not 'thread-safe'. ...

This is correct. I'm not sure about the XForms library itself since I've never
looked at it from that perspective, but X is for all intents and purposes
not at all 'thread-safe'. There are some extensions in X11R6 which purport
to allow some thread support but I've not used them to any extent so I can't
say how useful they are.

> ... Are there
> any known solutions (except avoiding multiple threads)?

Not any particularly useful ones, as far as I know.

Well, that's not exactly correct. You can have multiple threads but only
one thread can communicate with the X server or make XForms/Xlib calls.
Doing otherwise will generate the dreaded "async error" and confuse the
X server badly.

However, I'm not sure that all of this is related to your problem. Are
you certain it's the loading of the pixmaps which is causing the big
slowdown? Are you using any sort of locking mechanism that might be
blocking the loads unnecessarily?

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