Raster sayeth:
> itimer interrupts with a timer queue system
[snip]
That sounds way complicated; what about something like:
while(1) {
for (i=0;i<MAX_DISPLAYS;i++) {
iface = GetIfaceFunction(i);
if (iface && (XPending(iface->display))) {
XNextEvent(iface->display,&event);
switch(event.type) {
/* etc */
}
} else {
/* check for expired timers */
...
Avoids multiple threads, but drops timer-based things from "real-time" to
"when-I-get-around-to-it-time". But is that such a bad trade-off? And
aren't you supposed to avoid a whole lotta work in a signal handler?
Disclaimer: I dunno if that even works (I think it's on the Master
Programmer's test, tho ;-)
jim
-
To unsubscribe from this list send mail to: [EMAIL PROTECTED]
with the message contents: unsubscribe e-develop