[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

1292.0. "XtMainLoop in an AST routine?" by VAOU02::JBLAIR (party on dudes!) Wed Aug 16 1989 22:04

    My customer is writing an application using the decwindows widgets. He
    has found that if a callback routine executes for a very long period of
    time ( for example 5 seconds because it is doing a big matrix invertion
    ) the application apprears to the user as frozen. He understands why
    this is so, because the main loop will dispense an event then wait for
    the callback to complete, but he doesn't like it. He is dreaming up
    ways to work around this and has come up with an idea. Can anyone
    comment on what might be expected if he was to ....
    
    He will write an ast which is timer driven and contains the
    XtMainLoop call.
    
    
    Also does anyone know if there is a way to force the XtMainLoop to
    time-out? Ie. make the loop execute even if there isn't any queued
    events on a timely basis?
    
    regards,
    jeanne

T.RTitleUserPersonal
Name
DateLines
1292.1CALL::SWEENEYHoney, I iconified the kidsThu Aug 17 1989 00:183
    While not obvious from the title, note 1260 discusses this situation
    precisely.

1292.2PSW::WINALSKIMeetings are our most important productFri Aug 18 1989 15:434
You cannot call Toolkit routines from AST level.  It won't work right.

--PSW

1292.3go with work proceduresVAOU02::JBLAIRparty on dudes!Mon Aug 21 1989 13:414
    Thanks, I had a hunch that the toolkit routines might not behave well
    if called from an AST but I wasn't sure. I'll try to steer them towards
    the solutions offered in note 1260.