Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!bloom-beacon!SEI.CMU.EDU!Rick.Kazman From: Rick.Kazman@SEI.CMU.EDU Newsgroups: comp.windows.x Subject: How to handle non-X events Message-ID: <8906142114.AA29150@ew.sei.cmu.edu> Date: 14 Jun 89 21:14:49 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 15 I have an application which needs to communicate to X (which it does through XtMainLoop) and another independent process. Currently, we are doing this by polling first X and then the other process. This busy-wait has been identified as a performance bottleneck in our system, however, and we would like to remove it. Is there any way of integrating non-X events into the X event mechanism, either through Xlib or the toolkit? Ideally, we would like to be able to have something like XtAddEventHandler--that is, we would like to be able to say, upon seeing event A, call routine B. Any ideas? My apologies if this has been discussed already. Thanks. rick