Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: fisher@skylab.enet.dec.com ()
Subject: Re: Waiting simultaneously on X event & VMS event flag?
Date: 22 Jul 1994 13:21:31 GMT	[thread overview]
Message-ID: <30oh4r$acb@jac.zko.dec.com> (raw)
In-Reply-To: ABSTINE.94Jul21093540@hummer.visix.com


In article <ABSTINE.94Jul21093540@hummer.visix.com>, abstine@visix.com (Art 
Stine) writes:
|>In article <youngn-1807941655410001@158.234.17.99> 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:
|>
|>If you can live with using only the event flags in cluster 0, you can 
|>do it easily with the existing event flag routines - get the EF that X is
|>using via ConnectionNumber (display) and just add it to the mask of
|>flags you want to wait for.

Have you actually tried this on VMS?  It works on Unix with a select(), but I'd 
be surprised if it were reliable on VMS for several reasons:

1) Not all transport types use event flags, or at least not in the same way.  
For example, I don't believe there is an event flag set for each data transfer 
when using the shared-memory LOCAL transport.

2) Even real network-based transports don't necessarily get exactly 1 EF setting 
per event (if I remember right, anyway).

3) Event flags are not unique, like file descriptors in Unix.  You really need a 
combination of the EF and an IOSB (for normal IOs anyway).

4) ConnectionNumber(dpy) is just that, a connection number.  It is normally used 
to index an array of per-connection information.  In Unix, an FD works here, and 
that is what is normally done.  However in VMS, a separate EF is not used for 
each display, so ConnectionNumber is consed up in another way.  (Unless it has 
changed since I stopped working on it...)

Anyway, if you can confine yourself to cluster 0, then you might as well use the 
standard supported way of XtAddInput (which I guess changed to XtAppAddInput 
when I was not looking).

Burns
(Former VMS DECwindows developer)


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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
1994-07-27  9:57 ` dominique dierick
  -- strict thread matches above, loose matches on Subject: below --
1994-07-20 21:07 Dom Maddalone
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