A timeout procedure provides a means of performing a function after a specified amount of time has elapsed. Timeouts are called once only, so if you need a timeout procedure to be called at regular intervals, it will have to add itself as another timeout procedure before exiting. The following function call will do this: XtAppAddTimeOut(appContext, timeoutPeriod, procedure, clientData);
To add a timeout procedure, select "Timeout Procedures..." from the Module menu.
The "Timeout Period" is specified in milliseconds.
Timeout procedures work better in an X environment than time-interrupt programming using signals, which is often the preferred method with UNIX. You may define any number of timeout procedures; X-Designer generates them all into the main code file.
See also: