Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: dgm@cronus.colorado.edu (Dom Maddalone)
Subject: RE: Waiting simultaneously on X event & VMS event flag?
Date: 20 Jul 94 14:07:50 MST	[thread overview]
Message-ID: <1994Jul20.140751.1676@buckie.hsc.colorado.edu> (raw)

In article <Ct8pG6.1p0@info.bris.ac.uk>, 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-1807941655410001@158.234.17.99>, 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


             reply	other threads:[~1994-07-20 21:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-07-20 21:07 Dom Maddalone [this message]
  -- strict thread matches above, loose matches on Subject: below --
1994-07-18 16:55 Waiting simultaneously on X event & VMS event flag? Nicholas Young
1994-07-19 22:58 ` Dom Maddalone
1994-07-20 13:00   ` Tim Llewellyn
1994-07-21 13:35 ` Art Stine
1994-07-22 13:21   ` fisher
1994-07-27  9:57 ` dominique dierick
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox