[comp.windows.x] RPC's and X

swick@athena.mit.EDU (Ralph R. Swick) (09/06/88)

> The most immediate monkeywrench that I've thought of is how do I keep
> the program in XtMainLoop and svc_run at the same time?  It needs to
> call the former to handle screen events and it needs to do the latter to
> be able to field RPC's.

Xt has hooks to handle non-X input that can be represented as files.
The next release will have additional hooks for limited background
processing (limited in the sense that the background task is responsible
for limiting it's execution time).  If neither of these fit your
situation, then XtMainLoop is not for you!  You'll have to write
your own main loop that polls both libraries to see which has work
to perform.  The next Xt release will have additional interfaces in
the style of XtPending() to assist in this.