From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7cd1,5309f6184b0934b9 X-Google-Attributes: gidf7cd1,public X-Google-Thread: 103734,5309f6184b0934b9 X-Google-Attributes: gid103734,public X-Google-Thread: 1164f8,5309f6184b0934b9 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-07-20 13:35:31 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!newsfeed.ACO.net!news.sztaki.hu!EU.net!uunet!CS.Arizona.EDU!buckie.ucha!cronus.colorado.edu!DGM Newsgroups: comp.sys.dec,vmsnet.misc,comp.windows.x Subject: RE: Waiting simultaneously on X event & VMS event flag? Message-ID: <1994Jul20.140751.1676@buckie.hsc.colorado.edu> From: dgm@cronus.colorado.edu (Dom Maddalone) Date: 20 Jul 94 14:07:50 MST Reply-To: dgm@cronus.colorado.edu Followup-To: comp.sys.dec,vmsnet.misc,comp.windows.x Organization: University Physicians, Inc., Denver, Colorado Nntp-Posting-Host: athena.hsc.colorado.edu Xref: nntp.gmd.de comp.sys.dec:16828 vmsnet.misc:2491 comp.windows.x:38044 In article , tjl@siva.bris.ac.uk (Tim Llewellyn) writes: > >In article <1994Jul19.155807.1669@buckie.hsc.colorado.edu>, >dgm@cronus.colorado.edu (Dom Maddalone) writes: > >|> >|>In article , youngn@logica.co.uk >|>(Nicholas Young) writes: >|> >|>>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? > >It was my choice too. However I received mail from the original poster. >He is porting an application that uses COMMON event flags. It has been >discussed here before how to wait for flags in more than one cluster but >I can't find anything in my mail folders anymore about that. Anyone care to >jog my memory? Hack: Have an AST procedure check for the common event flag; if not set, re-queue itself for whatever time; if set, set the local event flag (& die), which causes the Xevent, which kicks off the user routine. [Then the user routine could clear it's local event flag, clear the common event flag, and re-queue the AST procedure.] Dom Maddalone, dgm@cronus.colorado.edu System Administrator, University Physicians, Inc., Denver