05-30-2006 10:19 AM
05-30-2006 10:38 AM
05-30-2006 10:47 AM
05-30-2006
11:10 AM
- last edited on
12-02-2025
12:07 PM
by
Content Cleaner
You're talking about a "producer-consumer" architecture. This uses queues. You can look at this article for an overview. In your case one of the loops has your event structure to handle events. This is your "producer" part. When an event happens you just add an element to the queue if you need to perform additional processing beyond user interface update. The other loop just loops around to see if there's anything in the queue. This is your "consumer" loop. The key here is that your event handler responds quickly to user events, letting the consumer loop continue processing as necessary.
05-30-2006 11:20 AM
05-30-2006 11:43 AM
05-30-2006 12:19 PM
05-30-2006 03:36 PM - edited 05-30-2006 03:36 PM
Message Edited by smercurio_fc on 05-30-2006 03:36 PM
05-30-2006 03:45 PM