Path: utzoo!utgpu!watserv1!ria!csd.uwo.ca!bradd From: bradd@csd.uwo.ca (krusty the klown) Newsgroups: comp.windows.x Subject: `Sharing' with XtAppMainLoop Message-ID: <1991Feb28.162008@csd.uwo.ca> Date: 28 Feb 91 21:20:08 GMT Sender: news@ria.ccs.uwo.ca Reply-To: bradd@csd.uwo.ca (krusty the klown) Organization: Computer Science Department - Univ. of Western Ontario Lines: 24 I'm just getting my feet wet in X-window development, so here's another question: I would like to have my program keep cranking away while XtAppMainLoop is in action. I came up with the following solution, but I'm sure that there are better ones: Before starting XtAppMainLoop, call XtAppAddTimeOut with an interval of 1 millisecond. Call XtAppMainLoop. Every time the procedure from XtAppAddTimeOut is called, restart the timeout with another call to XtAppAddTimeOut. This appears to work, but I'm sure there is a better way. The smallest possible timeout of 1 millisecond doesn't seem to quick; ie: my program running in the "background" seems a little slow. BTW, I'm using the Athena Widget Set. Thanks. Patrick Bradd bradd@csd.uwo.ca