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: 1164f8,5309f6184b0934b9 X-Google-Attributes: gid1164f8,public X-Google-Thread: 13f27d,5309f6184b0934b9 X-Google-Attributes: gid13f27d,public X-Google-ArrivalTime: 1994-07-22 06:31:57 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!usc!nic-nac.CSU.net!charnel.ecst.csuchico.edu!olivea!decwrl!pa.dec.com!jac.zko.dec.com!skylab.enet.dec.com!fisher From: fisher@skylab.enet.dec.com () 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: 22 Jul 1994 13:21:31 GMT Organization: Digital Equipment Corporation Distribution: world Message-ID: <30oh4r$acb@jac.zko.dec.com> References: Reply-To: fisher@skylab.enet.dec.com () NNTP-Posting-Host: skylab.zko.dec.com X-Newsreader: mxrn 6.18-17 Xref: nntp.gmd.de comp.sys.dec:16874 vmsnet.misc:2497 vmsnet.alpha:2208 comp.windows.x:38138 In article , abstine@visix.com (Art Stine) writes: |>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: |> |>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)