From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f8a1,5309f6184b0934b9 X-Google-Attributes: gid10f8a1,public X-Google-Thread: f7cd1,5309f6184b0934b9 X-Google-Attributes: gidf7cd1,public X-Google-Thread: 103734,5309f6184b0934b9 X-Google-Attributes: gid103734,public X-Google-Thread: 13f27d,5309f6184b0934b9 X-Google-Attributes: gid13f27d,public X-Google-Thread: 1164f8,5309f6184b0934b9 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-07-27 03:09:24 PST Path: nntp.gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!agate!darkstar.UCSC.EDU!news.hal.COM!decwrl!crl.dec.com!crl.dec.com!decuk.uvo.dec.com!cygnusx1!dierick From: dierick@cygnusx1.enet.dec.com (dominique dierick) Newsgroups: comp.sys.dec,vmsnet.misc,vmsnet.alpha,comp.windows.x,comp.windows.x.xt Subject: Re: Waiting simultaneously on X event & VMS event flag? Date: 27 Jul 1994 09:57:56 GMT Organization: Digital Equipment Corporation Sender: dierick@cygnusx1.bro.dec.com (dominique dierick) Distribution: world Message-ID: <315b34$ois@decuk.uvo.dec.com> References: Reply-To: dierick@cygnusx1.bro.dec.com NNTP-Posting-Host: cygnusx1.bro.dec.com X-Newsreader: mxrn 6.18-6 Xref: nntp.gmd.de comp.sys.dec:16988 vmsnet.misc:2505 vmsnet.alpha:2229 comp.windows.x:38349 In article , youngn@logica.co.uk (Nicholas Young) writes: Can anyone help, please ... I have an Xt-based program running on OpenVMS/Alpha that needs to wait simultaneously on X events and VMS event flags. [Don't ask why :-)] Is there an easy way to do this? Possibilities seem to be: 1) Use XtAppAddInput (best, because portable). Can the alternative input source be made to wait on event flags? 2) Go below the X level and use something else. Is XNextEvent implemented using QIOs, and if so can I both use them to get X events and also to wait on event flags? Or does X use some obscure VMS mechanism? 3) [Last resort] Write a separate app/thread that sits there waiting for the event flag and dispatches some sort of alternative input to the Xt loop (see (1)). Or is there a better way that I've missed? Advice, pointers or sample code gratefully appreciated. Mail preferred; I'll post the results if there is any interest. Thanks, Nicholas. -- Nicholas Young. Opinions expressed above are mine, not Logica's. I am often away; please mail me if you wish to be sure I see articles. "'Macbeth' is a play written by a man who, on this occasion at least, if he had the talent, ought to have written a fairy tale." - J.R.R.Tolkien. > I have ( 5 years ago, still in my VMS days ;-) ) used option 1 ( XtAppAdd > Input ) and it worked. Don't ask for details though, it's too long ago. -- ============================================================= **** **** **** * ** **** * * **** * * * * * ** * * * * * * * * **** *** * ** **** **** * **** * * * * * ** * * * * * **** **** * * ** * * * * * Dominique Dierick Digital Equipment Corporation, Brussels dierick@cygnusx1.bro.dec.com Phone : 32-2-729-75-48 dierick@brsux0.bro.dec.com Only speaking for myself here, not for Digital ... =============================================================