R: R: XForms: Threadsafe

From: Paolo Prandini (prandini@spe.it)
Date: Fri Jun 02 2000 - 03:30:29 EDT

  • Next message: Daniela Soares de Almeida: "XForms: New user question"

    # To subscribers of the xforms list from "Paolo Prandini" <prandini@spe.it> :

    Sorry if I seem repeating, I have already tried it...
    In fact it works, but what about functions you can't control,
    like when the user hits a button? I am to the point where
    the program crashes only and always if the users hits a button
    when I am updating something. It is exactly NOW that I need
    to add mutexes to the source code of XForms. If I were enabled
    to do that, then Xforms could become threadsafe. THAT is the
    purpose of my first message.
    Paolo

    > -----Messaggio originale-----
    > Da: owner-xforms@bob.usuhs.mil [mailto:owner-xforms@bob.usuhs.mil]Per
    > conto di Steve Lamont
    > Inviato: giovedì 1 giugno 2000 20:26
    > A: xforms@bob.usuhs.mil
    > Oggetto: Re: R: XForms: Threadsafe
    >
    >
    > # To subscribers of the xforms list from Steve Lamont
    > <spl@blinky.ucsd.edu> :
    >
    > > Unfortunately I tried it and it is too slow for real time
    > > functions, like updating motor coordinates. They jump and
    > > are not updated smoothly , so it is impossible to control
    > > motion manually while checking them.
    >
    > It looks as if I stand corrected regarding threads and X -- though I
    > haven't tried any experiments yet, reading through the O'Reily Xlib
    > manuals leads me to believe that the danger in X is reentrancy (it is
    > not reentrant), rather than concurrency, though there is a somewhat
    > ambiguous mention of threaded and multiprocessor architectures that
    > gives me pause.
    >
    > You might try wrapping the XForms calls with pthread_mutexes. That
    > would be something of a kluge but it would be a workaround.
    >
    > It's worth a try.
    >
    > 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/
    >

    _________________________________________________
    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 : Fri Jun 02 2000 - 03:38:18 EDT