From: youngn@logica.co.uk (Nicholas Young)
Subject: Waiting simultaneously on X event & VMS event flag?
Date: Mon, 18 Jul 1994 16:55:41 GMT [thread overview]
Message-ID: <youngn-1807941655410001@158.234.17.99> (raw)
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.
next reply other threads:[~1994-07-18 16:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-07-18 16:55 Nicholas Young [this message]
1994-07-19 22:58 ` Waiting simultaneously on X event & VMS event flag? 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
-- 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