Re: XForms: Queued X event handling

From: T.C. Zhao (tc_zhao@yahoo.com)
Date: Sat Apr 22 2000 - 12:24:04 EDT

  • Next message: Keene: "XForms: Solaris 7"

    # To subscribers of the xforms list from "T.C. Zhao" <tc_zhao@yahoo.com> :

    Steve the suggestion was good. Another way of working
    around this is to insert fl_check_forms() in the
    CPU intensive routines. May not be the best solution
    in all cases, but it should work.

    --- Hugh Gibson <hugh@mrao.cam.ac.uk> wrote:
    > # To subscribers of the xforms list from Hugh Gibson
    > <hugh@mrao.cam.ac.uk> :
    >
    > Hi Xformers,
    > Quick mini-snag which someone may have helpful advice about...
    >
    > I'm using a standard timer with which resets itself at the end of its
    > own call-back, therefore re-triggering itself (a 'heartbeat').
    >
    > This works beautifully, except when there is a lot of other stuff
    > happening grabbing CPU time, then the timer starts piling up
    > call-backs, which all get serviced in a rush when there is a gap in
    > the processing time.
    >
    > I can't seem to lengthen the timer easily when I know this will
    > happen, and I'm not certain how best to use the X-event queue
    > manipulation stuff.
    > Temporarily disabling the timer outside the 'hearbeat' callback also
    > seems also pretty hard (perhaps I've answered my own question.. use
    > a
    > global to signify what should happen to the timer delay in the
    > heatbeat callback?)
    >
    > Any advice gratefully received,
    > Thanks, Hugh Gibson
    > _________________________________________________
    > 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/
    >
    >

    __________________________________________________
    Do You Yahoo!?
    Send online invitations with Yahoo! Invites.
    http://invites.yahoo.com
    _________________________________________________
    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 Apr 22 2000 - 12:28:20 EDT