> I had exactly that problem but my time frame was much smaller. Have you try
this in a more intensive use, like ones every 5sec?

This should work no problem. Reducing the timeout value will have only
a linear impact on your resource usage, ie 5 seconds will do twice as
many checks as 10 seconds. But you will never run into a problem where
the thread "restarts" over itself or anything like that. It processes
everything it can, one batch at a time.

The timeout is not actually strictly necessary at all. Assuming you do:

processor.event.set()

Whenever you have something for it to process, it should happen
immediately. You could set it to wait indefinitely and it'll still
process whenever you have data. I set a timeout because I'm paranoid,
not because it's necessary.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to