Re: XForms: More on the subject of threads

From: Steve Lamont (spl@blinky.ucsd.edu)
Date: Sat Jun 17 2000 - 12:30:47 EDT

  • Next message: T.C. Zhao: "Re: XForms: v0.89.6"

    # To subscribers of the xforms list from Steve Lamont <spl@blinky.UCSD.Edu> :

    > Sorry Steve probably some bits of my messages were not
    > too much clear...but english is noy my primary language
    > as you might have imagined.

    Hey, better than my Italian, which consists of the words "spaghetti"
    and "ciao." (I don't coun't "pizza" because American pizza resembles
    Italian pizza only inasmuch as it is round -- and I'm not even certain
    of that, come to think of it) :-)

    > It doesn't work even if I DON'T USE THREADS in the program!
    > I simply get an otherwise working XForms
    > program (like yours without starting threads), no threads
    > no anything strange, I add XInitThreads and voila' I get
    > a crash when I press a key!

    There very well may be some problem with the Linux (XFree86??)
    implementation of XInitThreads() for single threaded applications.
    Note that the manual page (at least the O'Reilly book's version and
    the Solaris version) says "[i]t is recommended that single-threaded
    programs not call this function."

    We may be chasing a bug that we needn't chase, since we're dealing
    with somewhat undefined behavior or at the very least a deprecated
    instance of use. There's no need going around *asking* for trouble.

    I would be more concerned if you call XInitThreads() in a threaded
    application and it hangs. There would be a real bug.

                                                            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://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/



    This archive was generated by hypermail 2b29 : Sat Jun 17 2000 - 12:33:41 EDT